PedroBern / react-native-collapsible-tab-view

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

5.0.0-rc.0 Crashes Android and iOS after expo publish (APK + TestFlight) #261

Closed azwinlam closed 2 years ago

azwinlam commented 2 years ago

During development, the previous issues with tabs not "clicking" due to onMomentumEnd not being called has been fixed.

However, when the APK is produced for mobile use, all screens using "react-native-collapsible-tab-view": "^5.0.0-rc.0" crashes the app on both platforms.

On one of the stack screens, only the sample code was used with the blue background.

"react-native-collapsible-tab-view": "^5.0.0-rc.0",
"react-native-pager-view": "^5.4.15",

Installed

azwinlam commented 2 years ago

Might have gotten ahead of myself with the PR

Mashnoor123 commented 10 months ago

It's a dependency issue. I faced it too when using expo updates after updating my native app. The problem is with the library "react-native-reanimated". Use the following command and push your expo updates-

npm install react-native-reanimated@latest react-native-collapsible-tab-view@latest --legacy-peer-deps

Now, the latest version won't run in the Expo Development environment. The most stable and compatible version for the Expo SDK is 2.14.4. Install this using the following command- npm install react-native-reanimated@2.14.4 --legacy-peer-deps

The version 2.14.4 is not compatible with the native app's dependency. But it works for the latest version of react-native-reanimated. So, when you are in the dev. environment, use 2.14.4. And when you are gonna push the updates to your native app, use the latest version of the library before pushing. Also make sure that you have the babel plugin of reanimated inside the babel.config.js file

Have a nice day!