You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 7, 2022. It is now read-only.
Current version raise error for "ViewPagerAndroid"
Error details:
Invariant Violation: VoewPagerAndroid has been removed from React Native.
It can now be installed and imported from 'react-native-viewpager' instead of 'react-native'
How to reproduce it>
It will only appear in Android platform
The text was updated successfully, but these errors were encountered:
Then after installing them, go to the folder - node_modules/react-native-slick/src and open index.js file. There you will see that it is importing ViewPagerAndroid from 'react-native'.
Remove that and add a new import - import ViewPagerAndroid from '@react-native-community/viewpager' . See the screenshot for help. That's it! You slider will work.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Which OS
Macos
Version
Expected behaviour
No errors on Android
Actual behaviour
Current version raise error for "ViewPagerAndroid"
Error details:
Invariant Violation: VoewPagerAndroid has been removed from React Native.
It can now be installed and imported from 'react-native-viewpager' instead of 'react-native'
How to reproduce it>
It will only appear in Android platform
The text was updated successfully, but these errors were encountered: