【发布时间】:2019-03-20 06:08:59
【问题描述】:
在我的应用程序中,我在 scrollView 中并排添加了 2 个图像,但它们相互连接,我希望它们被空格分隔。
here is the image of how it looks
代码如下:
<View style={{ height: 230, marginTop: 20, justifyContent:'space-around' }}>
<ScrollView horizontal={true} showsHorizontalScrollIndicator={false} >
<Image source={require('../assets/images/restaurant.jpg')} />
<Image source={require('../assets/images/experiences.jpg')} />
</ScrollView>
</View>
【问题讨论】:
-
我的回答对您的问题有帮助吗?
标签: react-native