maxs15 / react-native-modalbox

A <Modal/> component for react-native
MIT License
2.9k stars 504 forks source link

Custom onRequestClose when coverScreen is true #183

Open wiratmika opened 7 years ago

wiratmika commented 7 years ago

Hi, when using coverScreen, the component is wrapped inside React Native's Modal with a predefined onRequestClose (that is, closing the Modalbox).

I think it would be better if we can define our own onRequestClose since not all the time we want to close the modal during back button press. Overriding it using BackHandler does not work either. Would like to make a PR for this if you think is a good idea.

ayusch-apps-curefit commented 4 years ago

@wiratmika Were you able to find any solution to this ?