以下是我为图像的左右位置找到的解决方案:
renderLeftRightImage (item, index) {
var imagePath = item.image?(Strings.BASE_IMAGE_URL+item.image[0].image):'https://placeimg.com/640/480/people';
if(item.position == 'left'){
return(
<View style={{overflow: 'hidden', width : 105, height:210, position : 'absolute', left:80, bottom:62, borderTopLeftRadius:150, borderBottomLeftRadius:150, backgroundColor:'transparent'}}>
<Image style={{width : 210, height:210}} source={{uri:imagePath}}/>
</View>
)
}
else if(item.position == 'right'){
return(
<View style={{overflow: 'hidden', width : 105, height:210, position : 'absolute', right:80, bottom:62, borderTopRightRadius:150, borderBottomRightRadius:150, backgroundColor:'transparent'}}>
<Image style={{width : 210, height:210, position:'absolute', right:0}} source={{uri:imagePath}}/>
</View>
)
}
else{
return null;
}
}