diff --git a/packages/react-native-web/src/vendor/react-native/Animated/useAnimatedProps.js b/packages/react-native-web/src/vendor/react-native/Animated/useAnimatedProps.js index 64b31b03b..556102851 100644 --- a/packages/react-native-web/src/vendor/react-native/Animated/useAnimatedProps.js +++ b/packages/react-native-web/src/vendor/react-native/Animated/useAnimatedProps.js @@ -24,16 +24,11 @@ import { import useLayoutEffect from '../../../modules/useLayoutEffect'; -type ReducedProps = { - ...TProps, - collapsable: boolean, - ... -}; type CallbackRef = T => mixed; export default function useAnimatedProps( props: TProps, -): [ReducedProps, CallbackRef] { +): [TProps, CallbackRef] { const [, scheduleUpdate] = useReducer(count => count + 1, 0); const onUpdateRef = useRef void>(null); @@ -102,12 +97,9 @@ export default function useAnimatedProps( function reduceAnimatedProps( node: AnimatedProps, -): ReducedProps { - // Force `collapsable` to be false so that the native view is not flattened. - // Flattened views cannot be accurately referenced by the native driver. +): TProps { return { ...node.__getValue(), - collapsable: false, }; }