[fix] Remove transform style warning

React Native's implementation of string transforms is incomplete.

Close #2622
This commit is contained in:
evanbacon
2023-12-19 15:36:15 -06:00
committed by Nicolas Gallagher
parent a3ea2a0a4f
commit 24212aacf6
@@ -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;