Skip to content

Commit 6d20efb

Browse files
authored
Merge pull request #7 from hellohublot/Fixed_the_mWebSafari_popup_picker_cannot_be_full_screen_when_the_keyboard_is_displayed
Fixed the mweb safari popup picker cannot be full screen when the keyboard is displayed
2 parents 84ee97d + b787548 commit 6d20efb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -590,6 +590,12 @@ export default class RNPickerSelect extends PureComponent {
590590
onValueChange={this.onValueChange}
591591
selectedValue={selectedItem.value}
592592
{...pickerProps}
593+
onPointerUp={(event) => {
594+
Keyboard.dismiss();
595+
if (pickerProps.onPointerUp) {
596+
pickerProps.onPointerUp(event);
597+
}
598+
}}
593599
>
594600
{this.renderPickerItems()}
595601
</Picker>

0 commit comments

Comments
 (0)