使用flex配置React Native中的图像位置

时间:2017-06-24 22:11:55

标签: css css3 react-native flexbox

我有四张图片,我在第一行删除了一张图片,但我想对齐左边的图片,将第一行的图像居中放在第二行的其他两张图片的相同尺寸上,附上我发送的图片我想做

enter image description here

代码

mainContainer: {
    backgroundColor: 'white',
    flex: 1,
    flexDirection: 'column',
    margin: 4,
    marginTop: 60,
},
firstContainer: {
    flex: 0.2,
    flexDirection: 'row'
},
secondContainer: {
    flex: 0.2,
    flexDirection: 'row'
}   

0 个答案:

没有答案