diff --git a/package.json b/package.json index 022e2254..26162f08 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "/src" ], "dependencies": { - "@react-native-picker/picker": "^1.8.3", + "@react-native-picker/picker": "^1.16.7", "lodash.isequal": "^4.5.0" }, "devDependencies": { diff --git a/src/index.js b/src/index.js index c38a05b5..dc14c266 100644 --- a/src/index.js +++ b/src/index.js @@ -248,6 +248,10 @@ export default class RNPickerSelect extends PureComponent { Keyboard.dismiss(); } + if (this.pickerRef && Platform.OS == 'android') { + this.pickerRef.focus(); + }; + const animationType = modalProps && modalProps.animationType ? modalProps.animationType : 'slide'; @@ -508,6 +512,7 @@ export default class RNPickerSelect extends PureComponent { {this.renderTextInputOrChildren()} {this.pickerRef = ref}} style={[ Icon ? { backgroundColor: 'transparent' } : {}, // to hide native icon defaultStyles.headlessAndroidPicker, @@ -533,6 +538,7 @@ export default class RNPickerSelect extends PureComponent { return ( {this.pickerRef = ref}} style={[ Icon ? { backgroundColor: 'transparent' } : {}, // to hide native icon style.inputAndroid,