我希望将视图工具栏与页面底部对齐,而不使用 justifyContent 属性的“空格”。
下面是我如何制作这个工具栏的代码:
<View style={{ height: '100%', justifyContent: 'space-between', }}>
<View style={{ flexDirection: 'row', height: 44,
alignItems: 'center', justifyContent: 'space-around',
backgroundColor: 'yellow'}}>
<Image source={require('./resources/images/grid.png')}/>
<Image source={require('./resources/images/grid.png')}/>
<Image source={require('./resources/images/grid.png')}/>
<Image source={require('./resources/images/grid.png')}/>
<Image source={require('./resources/images/grid.png')}/>
</View>
</View>