ptomasroos / react-native-scrollable-tab-view

Tabbed navigation that you can swipe between, each tab can have its own ScrollView and maintain its own scroll position between swipes. Pleasantly animated. Customizable tab bar
https://www.npmjs.com/package/react-native-scrollable-tab-view
6.93k stars 2.28k forks source link

IOS required no view pager but Andorid required view pager. how to resolve this issue. #1149

Open puneetkansal04 opened 3 years ago

puneetkansal04 commented 3 years ago

With this

"react": "17.0.1", "react-native": "0.64.2",

If I am using @react-native-community/viewpager

android started working and IOS doesn't

if I will not use this android stopped working and iOS working with this package

So what should I do to resolve this issues. how to use react-native-scrollabletabview in both.

Orange9000 commented 3 years ago

In my case I got rid of viewpager dependency by patching the package. Now both on ios and android Animated.ScrollView is used as a scenes container. It also seems to have a better animation performance on android (at least when used with scrollable tab bar, it no longer stutters on tab switching). See node_modules\react-native-scrollable-tab-view\index.js