mirror of
https://github.com/zhigang1992/react-native-picker.git
synced 2026-05-25 11:56:39 +08:00
android toggle bug
This commit is contained in:
@@ -110,6 +110,16 @@ export default class PickerTest extends Component {
|
||||
});
|
||||
}
|
||||
|
||||
_toggle() {
|
||||
Picker.toggle();
|
||||
}
|
||||
|
||||
_isPickerShow(){
|
||||
Picker.isPickerShow(status => {
|
||||
alert(status);
|
||||
});
|
||||
}
|
||||
|
||||
render() {
|
||||
return (
|
||||
<View style={{height: Dimensions.get('window').height}}>
|
||||
@@ -119,6 +129,12 @@ export default class PickerTest extends Component {
|
||||
<TouchableOpacity style={{marginTop: 10, marginLeft: 20}} onPress={this._showAreaPicker.bind(this)}>
|
||||
<Text>AreaPicker</Text>
|
||||
</TouchableOpacity>
|
||||
<TouchableOpacity style={{marginTop: 10, marginLeft: 20}} onPress={this._toggle.bind(this)}>
|
||||
<Text>toggle</Text>
|
||||
</TouchableOpacity>
|
||||
<TouchableOpacity style={{marginTop: 10, marginLeft: 20}} onPress={this._isPickerShow.bind(this)}>
|
||||
<Text>isPickerShow</Text>
|
||||
</TouchableOpacity>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user