diff --git a/src/index.js b/src/index.js index 5861855d..1e60493c 100644 --- a/src/index.js +++ b/src/index.js @@ -532,6 +532,12 @@ export default class RNPickerSelect extends PureComponent { onValueChange={this.onValueChange} selectedValue={selectedItem.value} {...pickerProps} + onFocus={() => { + Keyboard.dismiss(); + if (pickerProps.onFocus) { + pickerProps.onFocus(); + } + }} > {this.renderPickerItems()} @@ -557,6 +563,12 @@ export default class RNPickerSelect extends PureComponent { onValueChange={this.onValueChange} selectedValue={selectedItem.value} {...pickerProps} + onFocus={() => { + Keyboard.dismiss(); + if (pickerProps.onFocus) { + pickerProps.onFocus(); + } + }} > {this.renderPickerItems()}