Skip to content

Commit

Permalink
[fix] Remove transform style warning
Browse files Browse the repository at this point in the history
React Native's implementation of string transforms is incomplete.

Close necolas#2622
  • Loading branch information
EvanBacon authored and gypaullin committed Jul 5, 2024
1 parent 9b86d6e commit 3a512ff
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,10 +203,6 @@ export const preprocess = <T: {| [key: string]: any |}>(
}
} else if (prop === 'transform') {
if (Array.isArray(value)) {
warnOnce(
'transform',
'"transform" style array value is deprecated. Use space-separated string functions, e.g., "scaleX(2) rotateX(15deg)".'
);
value = createTransformValue(value);
}
nextStyle.transform = value;
Expand Down

0 comments on commit 3a512ff

Please sign in to comment.