Open HAPENLY opened 7 years ago
When I give the picture to the width of the time, twice will show the candidate picture. Tried a lot of ways can not be resolved, I hope the author concerned about this issue, so that the library better use. Thanks to the author's library!
Not sure if that helps but I wasn't successful controlling the width of the <ViewPager>
either. I ended up wrapping it around a regular <View>
and it worked exactly like I expected. HTH.
@clarete what do you mean, how do you put a View as a child of ViewPager to force the width?
Hi @jslz I just put the ViewPager
element within a View
and set the width of the View
.
<View style={{ width: Dimensions.get('window').width }} ref="viewPager">
<ViewPager (...) />
</View>