Skip to content

Commit 4dc2bf9

Browse files
authored
PickerModal - support onShow (#1340)
* PickerModal - support onShow * Revert unrelated changes
1 parent a838739 commit 4dc2bf9

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/components/picker/PickerModal.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,15 @@ class PickerModal extends BaseComponent {
7878
};
7979

8080
render() {
81-
const {visible, enableModalBlur, topBarProps, listProps, children} = this.props;
81+
const {visible, enableModalBlur, topBarProps, listProps, children, onShow} = this.props;
8282
return (
8383
<Modal
8484
animationType={'slide'}
8585
transparent={Constants.isIOS && enableModalBlur}
8686
enableModalBlur={Constants.isIOS && enableModalBlur}
8787
visible={visible}
8888
onRequestClose={topBarProps.onCancel}
89+
onShow={onShow}
8990
>
9091
<Modal.TopBar {...topBarProps}/>
9192
{this.renderSearchInput()}

src/components/picker/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,7 @@ class Picker extends Component {
350350
enableModalBlur,
351351
topBarProps,
352352
showSearch,
353+
onShow,
353354
searchStyle,
354355
searchPlaceholder,
355356
renderCustomSearch,
@@ -397,6 +398,7 @@ class Picker extends Component {
397398
onSearchChange={this.onSearchChange}
398399
renderCustomSearch={renderCustomSearch}
399400
listProps={listProps}
401+
onShow={onShow}
400402
>
401403
{this.children}
402404
</PickerModal>

0 commit comments

Comments
 (0)