react-native-modalfy
react-native-modalfy copied to clipboard
[iOS] open modal when screen has options presentation: "modal"
I have encountered a problem when using a modal on a screen that has the option presentation: "modal"
. The modal always shows up behind it.
To address this issue, I came up with a workaround that involves wrapping the screen content with ModalProvider
. However, this approach results in opening two modals, and I am unable to close the modal on a screen with presentation: "modal"
.
If anyone has a better solution for this case, please share it with me. Thank you.
hey @vietanhdtd! could you provide a repro on snack please?
@CharlesMangwa thank you for responding. Here's snake of the problem i mention above:
https://snack.expo.dev/@vietanhdtd/modalfy-screen-presentation-modal
And only happen on iOS.
hey @vietanhdtd! sorry for the delayed response. unfortunately, i do not have an idea how to address your issue effectively. i'd need to spend some more time trying things before i can potentially release a patch. apologies for the inconvenience.
Hello @CharlesMangwa, I opened a PR #149 which fixes this