I have two queries actually. I am using ScrollView
in my app. The list shows horizontal when i give static images in scrollview like this:
<View>
<View style={{width:width,paddingHorizontal:20,paddingVertical:20}}>
<ScrollView
horizontal={true}
showsHorizontalScrollIndicator={false}
scrollEventThrottle={200}
decelerationRate="fast"
pagingEnabled>
<Image source={{uri:'https://reactjs.org/logo-og.png'}}
style={{width: 80, height: 80}} />
<Image source={{uri:'https://reactjs.org/logo-og.png'}}
style={{width: 80, height: 80}} />
<Image source={{uri:'https://reactjs.org/logo-og.png'}}
style={{width: 80, height: 80}} />
<Image source={{uri:'https://reactjs.org/logo-og.png'}}
style={{width: 80, height: 80}} />
</ScrollView>
</View>
</View>
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…