Open eklavya opened 8 years ago
I haven't test this in ScrollView
. I'll try it latter.
Thanks for the prompt reply @race604 :)
@eklavya, add contentContainerStyle
prop to your ScrollList component, something like that:
<ScrollView contentContainerStyle={{ width: Dimensions.get('window').width, height: 200 }} >
<ViewPager
isLoop={true}
autoPlay={true}
dataSource={this.state.dataSource}
renderPage={this._renderPage}/>
</ScrollView>
thanks @artem-russkikh but this breaks many other things. Besides changing height for anything useful with viewpager results in unusable ScrollView :(
+1
@eklavya you can do like this <View style={{height:200}}> <ViewPager >...</ViewPage></View>
,it's work for me.
+1
No matter what I do, I can't seem to make it work in a ScrollView. It doesn't show up except the dots part. I have tried all sorts of flex settings, height etc. Please help.