[native-stack] Implement ability to set `isModalInPresentation`
See original GitHub issueDescription
The implementation is fairly simple. I want a boolean toggle (preferably in the options of the screen) to toggle the screens isModalInPresentation
for the transparent modals.
I will work on a PR, if I have the time to.
Caveats
Motivation
I think the motivation behind this one is pretty clear.
Code example
N/A
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
isModalInPresentation | Apple Developer Documentation
A Boolean value indicating whether the view controller enforces a modal behavior. iOS 13.0+ iPadOS 13.0+ Mac Catalyst 13.1+ tvOS ...
Read more >Disable the interactive dismissal of presented view controller
Since the iOS 13, UIViewController contains a new property called isModalInPresentation which must be set to true to prevent the interactive ...
Read more >A React Native Component for Displaying a Modal on iOS
So this component exist to tap into native iOS modal behaviour. Ideally, another library will use this component (like a navigation library) to...
Read more >5 breaking changes to check before building your app for iOS 13
When you set it to true , UIKit ignores events outside the view controller's bounds and prevents the interactive dismissal of the view ......
Read more >Modality changes in iOS13 - Sarunw
Or set presentation style under the Attributes Inspector. ... the modal just set isModalInPresentation to true in a modal view controller.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Super sorry, searched the repository for
isModalInPresentation
, but just found out that the Obj-C equiv ismodalInPresentation
and is set here: https://github.com/software-mansion/react-native-screens/blob/6d110d64356309ebac4d64e22d5b1f16b98c36bb/ios/RNSScreen.m#L153-L155Thanks!
I am closing this issue since I believe there is nothing more we can do from the
react-native-screens
point of view. Feel free to comment if you find a solution or if something is wrong.