From 338cce194de0ca4a458b82304366b3e6dac94e43 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Tue, 11 Apr 2023 16:21:34 -0700 Subject: [PATCH] [fix] SSR of Animated doesn't call useLayoutEffect --- .../src/vendor/react-native/Animated/useAnimatedProps.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 c37a00b622..64b31b03b4 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 @@ -17,12 +17,13 @@ import NativeAnimatedHelper from './NativeAnimatedHelper'; import { useCallback, useEffect, - useLayoutEffect, useMemo, useReducer, useRef, } from 'react'; +import useLayoutEffect from '../../../modules/useLayoutEffect'; + type ReducedProps = { ...TProps, collapsable: boolean,