pankod / react-native-picker-modal-view

An unified React Native Picker Modal component for iOS and Android.
204 stars 56 forks source link

Android native button does not close the modal #57

Closed christiamomana closed 4 years ago

christiamomana commented 4 years ago

Android native button does not close the modal

medeirosrafael commented 4 years ago

I dont know if this is the right way, but

<PickerModal
                        ref={(ref) => modalRef = ref}
                        ModalProps={{
                            onRequestClose: () => {
                                modalRef._onBackRequest();
                            }
                        }}

This works..

christiamomana commented 4 years ago

Thanks this worked!