PedroBern / react-native-collapsible-tab-view

A cross-platform Collapsible Tab View component for React Native
MIT License
827 stars 160 forks source link

Error occurred in <ForwardRef> component #282

Open hoangtran-97 opened 1 year ago

hoangtran-97 commented 1 year ago

Hi, I am trying to test one of my component using this lib with RNTL and Jest then I got the following error

 The above error occurred in the <ForwardRef> component:

        at /node_modules/react-native-collapsible-tab-view/lib/commonjs/Container.tsx:65:9

I already tried to mock reanimated in my setup

jest.mock(
  'react-native-reanimated',
  () => require('react-native-reanimated/mock').default,
);

Here are my dependencies

 "react-native-collapsible-tab-view": "^5.0.0-rc.13",
 "react-native-reanimated": "^2.9.1",
 "react-native-pager-view": "^5.4.25",
shail-spreadd commented 2 months ago

@hoangtran-97 did you get the solution to this ?