react-native-navigation icon indicating copy to clipboard operation
react-native-navigation copied to clipboard

modalPrestationStyle support

Open kiroukou opened this issue 7 years ago • 11 comments

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

capture d ecran 2019-01-18 a 18 17 09

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?

kiroukou avatar Jan 18 '19 17:01 kiroukou

Anyone has tried to make that working so far on iOS ?

kiroukou avatar Jan 20 '19 19:01 kiroukou

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 !

kiroukou avatar Jan 22 '19 10:01 kiroukou

Running into this as well.

cjroth avatar Feb 02 '19 04:02 cjroth

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.

cjroth avatar Feb 02 '19 17:02 cjroth

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

cjroth avatar Feb 04 '19 18:02 cjroth

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.

stale[bot] avatar Mar 06 '19 18:03 stale[bot]

Any updates on this ? I am facing the same issue and it was working previously ... Thanks !

lorisdev avatar Mar 08 '19 17:03 lorisdev

you can still use overFullScreen for having a semi transparent modal for example: layout: { backgroundColor: 'transparent', }, modalPresentationStyle: 'overFullScreen',

buskerone avatar Mar 11 '19 13:03 buskerone

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.

stale[bot] avatar Apr 10 '19 13:04 stale[bot]

Can't reproduce in latest version.. Does this still happening for you in 2.17.0?

yogevbd avatar Apr 21 '19 14:04 yogevbd

@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

smooJitter avatar May 15 '19 02:05 smooJitter