I found that react-native-swiper couldn't work well with newest react-navigation(v1.1.2).
We can't see the contents of swiper if we put the swiper in the first tab of react-navigation's TabNavigator, but everything is ok if we put the swiper in any other tabs except the first tab.
Code(make sure your react-navigation's version is above 1.0.0):
Which OS ?
Android
Version
Which versions are you using:
I found that react-native-swiper couldn't work well with newest react-navigation(v1.1.2). We can't see the contents of swiper if we put the swiper in the first tab of react-navigation's TabNavigator, but everything is ok if we put the swiper in any other tabs except the first tab.
Code(make sure your react-navigation's version is above 1.0.0):
Screenshots:
Update
A solution is to delay the rendering of swiper. Below is the code. But I believe this is a bug, hope to fix it.
Temporarily Solution
Temporarily delaying the rendering of swiper by
setTimeout()
will solve this.