Open belal-mazlom opened 4 years ago
I am getting the same error as well.
I'm also getting the same error. Is someone working on RN 0.61 support?
This library is using 'ViewPagerAndroid' which earlier came included with 'react-native' package BUT is now separated and can be used as an external library. You need to install it from - https://www.npmjs.com/package/@react-native-community/viewpager
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.
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