Skip to content

Commit 338cce1

Browse files
committed
[fix] SSR of Animated doesn't call useLayoutEffect
1 parent 6795738 commit 338cce1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/react-native-web/src/vendor/react-native/Animated/useAnimatedProps.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,13 @@ import NativeAnimatedHelper from './NativeAnimatedHelper';
1717
import {
1818
useCallback,
1919
useEffect,
20-
useLayoutEffect,
2120
useMemo,
2221
useReducer,
2322
useRef,
2423
} from 'react';
2524

25+
import useLayoutEffect from '../../../modules/useLayoutEffect';
26+
2627
type ReducedProps<TProps> = {
2728
...TProps,
2829
collapsable: boolean,

0 commit comments

Comments
 (0)