mirror of
https://github.com/zhigang1992/react-native-picker.git
synced 2026-06-19 18:23:28 +08:00
android toggle bug
This commit is contained in:
@@ -6,9 +6,6 @@ A Native Picker with high performance.
|
||||
|
||||
pure javascript version -> [v3.0.5](https://github.com/beefe/react-native-picker/tree/pure-javascript-version)
|
||||
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
###Documentation
|
||||
|
||||
BIN
doc/ui.gif
BIN
doc/ui.gif
Binary file not shown.
|
Before Width: | Height: | Size: 299 KiB |
BIN
doc/ui2.jpg
BIN
doc/ui2.jpg
Binary file not shown.
|
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 71 KiB |
@@ -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