beefe / react-native-picker

A Native Picker with high performance.
1.75k stars 786 forks source link

How to add mask layer #359

Open bwor opened 5 years ago

bwor commented 5 years ago

Does mask layer support?

Journey-hu commented 4 years ago

+1

Journey-hu commented 4 years ago

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,亲测可行