From 5aec7fbecf8d7392371b70b0ce8250566f2e0141 Mon Sep 17 00:00:00 2001 From: hublot Date: Tue, 4 Apr 2023 10:59:07 +0800 Subject: [PATCH 1/2] Fixed the mWebSafari pop-up picker cannot be full screen when the keyboard is displayed --- src/index.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/index.js b/src/index.js index bcbc93e8..2e0f639f 100644 --- a/src/index.js +++ b/src/index.js @@ -545,6 +545,12 @@ export default class RNPickerSelect extends PureComponent { onValueChange={this.onValueChange} selectedValue={selectedItem.value} {...pickerProps} + onPointerUp={(event) => { + Keyboard.dismiss(); + if (pickerProps.onPointerUp) { + pickerProps.onPointerUp(event); + } + }} > {this.renderPickerItems()} From b787548d7e7196209fee4c3121ed332aea5936a2 Mon Sep 17 00:00:00 2001 From: hublot Date: Tue, 4 Apr 2023 11:10:28 +0800 Subject: [PATCH 2/2] Fix lint --- src/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/index.js b/src/index.js index 2e0f639f..b9731dcc 100644 --- a/src/index.js +++ b/src/index.js @@ -546,10 +546,10 @@ export default class RNPickerSelect extends PureComponent { selectedValue={selectedItem.value} {...pickerProps} onPointerUp={(event) => { - Keyboard.dismiss(); - if (pickerProps.onPointerUp) { - pickerProps.onPointerUp(event); - } + Keyboard.dismiss(); + if (pickerProps.onPointerUp) { + pickerProps.onPointerUp(event); + } }} > {this.renderPickerItems()}