Reputation: 373
I'm using React Native (with Expo) to develop an app, but I'm having trouble with something. On iOS it works fine but on Android I get this error:
Does this swiper component not work with Android?
I have installed react-native-view-overflow.
Upvotes: 1
Views: 1907
Reputation: 384
I noticed your question while dealing with the same problem and found this on the react-native-deck-swiper GH page https://github.com/alexbrillant/react-native-deck-swiper/issues/218
Apparently what you need to do (and worked 100% for me), is just add the following in your Swiper component:
import { Platform } from 'react-native'
...
<Swiper
...props
useViewOverflow={Platform.OS === 'ios'}
/>
Good luck!
Upvotes: 5
Reputation: 10808
It won't work on Android because it needs to be link as you are using the expo so it's not possible. https://github.com/entria/react-native-view-overflow#manual-installation
Note: You can eject the project than can run it.
For more information please check the issue https://github.com/expo/expo/issues/1843
Upvotes: -1