mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-05-24 15:18:19 +00:00
[fix] Remove transform style warning
React Native's implementation of string transforms is incomplete. Close #2622
This commit is contained in:
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;
|
||||
|
||||
Reference in New Issue
Block a user