Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
puneetkansal04 opened this issue Jun 23, 2021 · 1 comment

Comments

@puneetkansal04
Copy link

puneetkansal04 commented Jun 23, 2021

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants