diff --git a/src/index.js b/src/index.js index c38a05b5..48b197fe 100644 --- a/src/index.js +++ b/src/index.js @@ -518,6 +518,12 @@ export default class RNPickerSelect extends PureComponent { onValueChange={this.onValueChange} selectedValue={selectedItem.value} {...pickerProps} + onFocus={() => { + Keyboard.dismiss(); + if (pickerProps.onFocus) { + pickerProps.onFocus(); + } + }} > {this.renderPickerItems()} @@ -543,6 +549,12 @@ export default class RNPickerSelect extends PureComponent { onValueChange={this.onValueChange} selectedValue={selectedItem.value} {...pickerProps} + onFocus={() => { + Keyboard.dismiss(); + if (pickerProps.onFocus) { + pickerProps.onFocus(); + } + }} > {this.renderPickerItems()}