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 necolas committed Dec 20, 2023
1 parent a3ea2a0 commit 24212aa
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 24212aa

Please sign in to comment.