mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Allowlist yoga dimension/position if useSharedAnimatedBackend featureflag is enabled (#56375)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/56375 ## Changelog: [Internal] [Changed] - Allowlist yoga dimension/position/flex if useSharedAnimatedBackend featureflag is enabled These are the most well tested yoga props in animation, will add more after we verify they work Reviewed By: cortinico Differential Revision: D100026348 fbshipit-source-id: de332ee06d7822c635b17e8e6dead46366e1a067
This commit is contained in:
1 parent
b60f0c9f04
commit
0cb9c1b5ff
1 file changed
+21
@@ -59,6 +59,27 @@ const SUPPORTED_STYLES: {[string]: true} = {
|
||||
scaleY: true,
|
||||
translateX: true,
|
||||
translateY: true,
|
||||
// eslint-disable-next-line react-hooks/rules-of-hooks
|
||||
...(ReactNativeFeatureFlags.useSharedAnimatedBackend()
|
||||
? {
|
||||
/* dimension */
|
||||
height: true,
|
||||
maxHeight: true,
|
||||
maxWidth: true,
|
||||
minHeight: true,
|
||||
minWidth: true,
|
||||
width: true,
|
||||
/* position */
|
||||
bottom: true,
|
||||
end: true,
|
||||
left: true,
|
||||
right: true,
|
||||
start: true,
|
||||
top: true,
|
||||
/* flex */
|
||||
flex: true,
|
||||
}
|
||||
: {}),
|
||||
};
|
||||
|
||||
const SUPPORTED_TRANSFORMS: {[string]: true} = {
|
||||
|
||||
Reference in new issue
Block a user