Android
Which versions are you using:
Should show image
white space nothing come up.
Note: it works without scrollview as expected.
To help us, please fork this component, modify one example in examples folder to reproduce your issue and include link here.
-
style.sliderBox = {flex: 1}
+1
same problem here
+1
+1
add containerStyle={{width: Dimensions.get("window").width}}
same problem here
same problem here
Reproduced on the ios 11 with Expo
+1
+1. Bump.
Adding containerStyle width & height to Swiper component solved the problem for me
<Swiper
containerStyle={{
width: Dimensions.get('window').width,
height: Dimensions.get('window').height
}}
/>
The workaround doesn't work for me. Trying to display an array of wix/react-native-calendars inside the swiper and it doesn't show anything on Android (works on iOS)
There is a better solution: https://github.com/leecade/react-native-swiper/issues/416#issuecomment-309785923
<Swiper removeClippedSubviews={false} .../>
This issue remains for me and the suggested solution does not work for me either. I want to know whether or not there is some solution..
Same issue , any other solution !?
<ViewPagerAndroid ref='scrollView'
{...this.props}
key={pages.length}
initialPage={this.state.index}
onPageSelected={this.onScrollEnd}
style={{flex: 1}}>
{pages}
</ViewPagerAndroid>
add key.
Most helpful comment
add containerStyle={{width: Dimensions.get("window").width}}