question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[native-stack] Implement ability to set `isModalInPresentation`

See original GitHub issue

Description

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:closed
  • Created 3 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
iduuckcommented, Dec 14, 2020

Super sorry, searched the repository for isModalInPresentation, but just found out that the Obj-C equiv is modalInPresentation and is set here: https://github.com/software-mansion/react-native-screens/blob/6d110d64356309ebac4d64e22d5b1f16b98c36bb/ios/RNSScreen.m#L153-L155

Thanks!

0reactions
WoLewickicommented, Feb 8, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found