的底部在阵营母语,我有这个Image
标签:将图像包含箱
<Image
style={imageStyle.content}
source={{uri: myImageUri}}
/>
其中有这样的造型:
const imageStyle = StyleSheet.create({
content:{
flexDirection:'column',
alignItems:'flex-end',
justifyContent:'flex-end',
backgroundColor: '#7CFC00',//light green
width: '95%'
height: '75%',
resizeMode: 'contain'
}
});
该图像生成:
我希望照片出现在底部分配给Image
容器的空间。
但是,我无法做到这一点。在造型中,我指定了alignItems:'flex-end'
和justifyContent:'flex-end'
,但都不起作用。
任何想法如何将图像推到容器的底部?
尝试alignSelf:'flex-end' – linasmnew