Swiper used default flex:1 ORZ...

{
"name": "Cadaily",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest"
},
"dependencies": {
"react": "16.2.0",
"react-native": "0.52.1",
"react-native-swiper": "^1.5.13",
"react-native-viewpager": "^0.2.13",
"react-navigation": "^1.0.0-beta.27"
},
"devDependencies": {
"babel-jest": "22.1.0",
"babel-preset-react-native": "4.0.0",
"jest": "22.1.4",
"react-test-renderer": "16.2.0"
},
"jest": {
"preset": "react-native"
}
}
Maybe it doesn't work in react-navigation TabNavigator? I puted it into a tab
I solved this by adding a container to Swiper and give the container a height.It works锛氾級
Although this can be done on the iphone, but not on Android phones.
remark, the same problem with you in android
@honestxll have you resolved this problem in android?
@panmin Yes,give the<Swiper /> a container also worked in android. I closed react-navigation TabNavigator's propety animationEnabled, it works!
Same thing happened to me in react-navigation tab... :/ I will use your fix for now, thanks guys!
yeah! view wrapper then setting height
Most helpful comment
I solved this by adding a container to Swiper and give the container a height.It works锛氾級