Open bwor opened 5 years ago
+1
1.声明一个变量 isShow ( isShow: false, // 弹框是否显示 默认关闭) 2.在布局添加一个View: {this.state.isShow? <View style={{width:width,height:height,position:'absolute',backgroundColor:'#000000',opacity:0.6}}> :null} 3.isShow的值来确定,弹框出来置为true,否则为false,亲测可行
Does mask layer support?