android toggle bug

This commit is contained in:
xwenliang
2016-09-22 11:25:21 +08:00
parent 1ba6216ed4
commit e23e33df2b
5 changed files with 19 additions and 5 deletions

View File

@@ -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>
);
}