mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-06-02 18:41:17 +00:00
[fix] SSR of Animated doesn't call useLayoutEffect
This commit is contained in:
+2
-1
@@ -17,12 +17,13 @@ import NativeAnimatedHelper from './NativeAnimatedHelper';
|
|||||||
import {
|
import {
|
||||||
useCallback,
|
useCallback,
|
||||||
useEffect,
|
useEffect,
|
||||||
useLayoutEffect,
|
|
||||||
useMemo,
|
useMemo,
|
||||||
useReducer,
|
useReducer,
|
||||||
useRef,
|
useRef,
|
||||||
} from 'react';
|
} from 'react';
|
||||||
|
|
||||||
|
import useLayoutEffect from '../../../modules/useLayoutEffect';
|
||||||
|
|
||||||
type ReducedProps<TProps> = {
|
type ReducedProps<TProps> = {
|
||||||
...TProps,
|
...TProps,
|
||||||
collapsable: boolean,
|
collapsable: boolean,
|
||||||
|
|||||||
Reference in New Issue
Block a user