modalPrestationStyle support
Issue Description
I'm getting the following error while trying to use overCurrentContext modalPresentationStyle on iOS simulator.
From the documentation of react-native-navigation and Apple https://developer.apple.com/documentation/uikit/uimodalpresentationstyle this should be correct.
Steps to Reproduce / Code Snippets / Screenshots
Environment
- React Native Navigation version: 2.4.0
- React Native version: 0.57.1
- Platform(s) (iOS, Android, or both?): iOS Simulator
- Device info (Simulator/Device? OS version? Debug/Release?): Simulator ios 6s 11.3
Any Idea please?
Anyone has tried to make that working so far on iOS ?
sorry to ping, but @guyca can you give me some inputs here ?
How could I get a modal over my main screen ? I'm sure you guy have an other option, but this one, which doesn't work so far, is the only one I have in mind.
Thanks !
Running into this as well.
It looks like React Native itself doesn't support any more than these 4 presentation styles: https://github.com/facebook/react-native/blob/0.47-stable/React/Views/RCTModalHostViewManager.m#L20.
I don't understand how overCurrentContext was working previously.
I was able to temporarily solve this by forcing React Native to support overCurrentContext. It'd be worth understanding why this isn't already supported before relying on it.
https://github.com/cjroth/react-native/commit/cd1e1c960b3fe02091a9ed0330f627ece537831d
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe the issue is still relevant, please test on the latest Detox and report back. Thank you for your contributions.
Any updates on this ? I am facing the same issue and it was working previously ... Thanks !
you can still use overFullScreen for having a semi transparent modal for example:
layout: {
backgroundColor: 'transparent',
},
modalPresentationStyle: 'overFullScreen',
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe the issue is still relevant, please test on the latest Detox and report back. Thank you for your contributions.
Can't reproduce in latest version.. Does this still happening for you in 2.17.0?
@yogevbd... how did you resolve this. It's weird, because like the others have mentioned, it just happened out of the blue. Suddenly, 'overCurrentContext' gives me an error, while the other options have no effect
