1.modal点击其他区域消失
<TouchableWithoutFeedback onPress={()=>this.setState({showTopMenu:false})}> <View style={{position: 'absolute',left: @H_301_44@0,right: @H_301_44@0,top: @H_301_44@0,bottom: @H_301_44@0,width: null,}}/> </TouchableWithoutFeedback>
2.图片做背景
<Image style={styles.img}
source={require('../image/IMG_0026.jpg')}
resizeMode='cover' />
img: { position: 'absolute', left: @H_301_44@0, right: @H_301_44@0, top: @H_301_44@0, bottom: @H_301_44@0, height: null, width: null,},