【发布时间】:2016-04-19 19:16:39
【问题描述】:
我正在尝试使用 flexbox 拆分屏幕,但我没有得到我想要的结果,这就是我所拥有的
<View style={{flex: 1}}>
<View style={{flex: 1}}>{/* half of the screen */}</View>
<View style={{flex: 1}}>{/* the other half */}
{/*<Swiper>*/}
<View style={{flex: 1}}>{/* a quarter of the other half */}</View>
<View style={{flex: 1}}>{/* a quarter of the other half */}</View>
<View style={{flex: 1}}>{/* a quarter of the other half */}</View>
<View style={{flex: 1}}>{/* a quarter of the other half */}</View>
{/*</Swiper>*/}
</View>
</View>
我遇到的问题是屏幕的另一半扩展为全屏的大小,它只是附加到前半部分而没有考虑到它存在于其中的一半的范围
我应该如何处理这个问题?
【问题讨论】:
标签: react-native flexbox