diff --git a/node_modules/react-native-reanimated/lib/reanimated2/jestUtils.js b/node_modules/react-native-reanimated/lib/reanimated2/jestUtils.js index 5ae42ec..aae478e 100644 --- a/node_modules/react-native-reanimated/lib/reanimated2/jestUtils.js +++ b/node_modules/react-native-reanimated/lib/reanimated2/jestUtils.js @@ -154,6 +154,9 @@ export const setUpTests = (userConfig = {}) => { return compareStyle(received, expectedStyle, config); }, }); + global.ReanimatedDataMock = { + now: () => currentTimestamp, + }; }; export const getAnimatedStyle = (received) => { return getCurrentStyle(received); diff --git a/node_modules/react-native-reanimated/react-native-reanimated.d.ts b/node_modules/react-native-reanimated/react-native-reanimated.d.ts index a3aafb2..141f0cd 100644 --- a/node_modules/react-native-reanimated/react-native-reanimated.d.ts +++ b/node_modules/react-native-reanimated/react-native-reanimated.d.ts @@ -7,8 +7,6 @@ declare module 'react-native-reanimated' { ReactNode, Component, RefObject, - ComponentType, - ComponentProps, FunctionComponent, } from 'react'; import { @@ -31,7 +29,6 @@ declare module 'react-native-reanimated' { NativeScrollEvent, NativeSyntheticEvent, ColorValue, - OpaqueColorValue, EasingFunction, } from 'react-native'; import { @@ -39,24 +36,24 @@ declare module 'react-native-reanimated' { PanGestureHandlerGestureEvent, } from 'react-native-gesture-handler'; - import('./src/reanimated2/globals'); + import('./lib/reanimated2/globals'); export type TimingAnimation = - import('./src/reanimated2/animation/index').TimingAnimation; + import('./lib/reanimated2/animation/index').TimingAnimation; export type SpringAnimation = - import('./src/reanimated2/animation/index').SpringAnimation; + import('./lib/reanimated2/animation/index').SpringAnimation; export type DecayAnimation = - import('./src/reanimated2/animation/index').DecayAnimation; + import('./lib/reanimated2/animation/index').DecayAnimation; export type DelayAnimation = - import('./src/reanimated2/animation/commonTypes').DelayAnimation; + import('./lib/reanimated2/animation/commonTypes').DelayAnimation; export type RepeatAnimation = - import('./src/reanimated2/animation/index').RepeatAnimation; + import('./lib/reanimated2/animation/index').RepeatAnimation; export type SequenceAnimation = - import('./src/reanimated2/animation/index').SequenceAnimation; + import('./lib/reanimated2/animation/index').SequenceAnimation; export type StyleLayoutAnimation = - import('./src/reanimated2/animation/index').StyleLayoutAnimation; + import('./lib/reanimated2/animation/index').StyleLayoutAnimation; export type Animation = - import('./src/reanimated2/commonTypes').Animation; + import('./lib/reanimated2/commonTypes').Animation; namespace Animated { type Nullable = T | null | undefined; diff --git a/node_modules/react-native-reanimated/src/createAnimatedComponent.tsx b/node_modules/react-native-reanimated/src/createAnimatedComponent.tsx index 6bead55..1cf0c3f 100644 --- a/node_modules/react-native-reanimated/src/createAnimatedComponent.tsx +++ b/node_modules/react-native-reanimated/src/createAnimatedComponent.tsx @@ -161,7 +161,7 @@ interface ComponentRef extends Component { getScrollableNode?: () => ComponentRef; } -interface InitialComponentProps extends Record { +export interface InitialComponentProps extends Record { ref?: Ref; collapsable?: boolean; } diff --git a/node_modules/react-native-reanimated/src/reanimated2/component/FlatList.tsx b/node_modules/react-native-reanimated/src/reanimated2/component/FlatList.tsx index f02fc16..32bf952 100644 --- a/node_modules/react-native-reanimated/src/reanimated2/component/FlatList.tsx +++ b/node_modules/react-native-reanimated/src/reanimated2/component/FlatList.tsx @@ -23,7 +23,7 @@ const createCellRenderer = (itemLayoutAnimation?: ILayoutAnimationBuilder) => { return cellRenderer; }; -interface ReanimatedFlatlistProps extends FlatListProps { +export interface ReanimatedFlatlistProps extends FlatListProps { itemLayoutAnimation?: ILayoutAnimationBuilder; }