[3.2.0] iOS modal with header
See original GitHub issueDescription
Trying out latest version 3.2.0. According to https://github.com/software-mansion/react-native-screens/pull/821, now in modal in iOS would have header by default, alinged with Android’s behaviour. But without headerShown: true, there is still no header present in iOS.
Therefore I added headerShown: true in stack options, but then I get the warning Be aware that changing the visibility of header in modal on iOS will result in resetting the state of the screen.
Am I missing any information here?
Steps To Reproduce
options={{
stackPresentation: 'modal'
}}
Above in iOS header doesn’t show up.
options={{
stackPresentation: 'modal',
headerShown: true
}}
Above in iOS, header does show up, but with the warning.
Package versions
- React: 17.0.2
- React Native: 0.64.1
- React Native Screens: 3.2.0
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Modal header is smaller after update to iOS 14.5+ #932 - GitHub
This issue got worse on iOS 15. If you drag the modal up a little bit, it will reset the header to its...
Read more >Bootstrap 3.2.0 modal and remote content not visible close ...
I use the bootstrap 3.2.0 modal dialog to display the contents of the remote, only the contents completely fills the modal window and...
Read more >JavaScript · Bootstrap 3.2.0 Documentation - BootstrapDocs
The modal plugin toggles your hidden content on demand, via data attributes or JavaScript. It also adds .modal-open to the <body> to override...
Read more >Modal - Bootstrap
Use Bootstrap's JavaScript modal plugin to add dialogs to your site for lightboxes, ... Included are the modal header, modal body (required for...
Read more >Modal - NativeBase
NativeBase 3.0 lets you build consistently across android, iOS & web. It is inspired by the Styled System and is accessible, highly themeable, ......
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 Free
Top 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

Yeah, but I think it is good to explicitly warn people about potential problems and they can disable the warning then. I will close this issue then.
I think this answers similar question: https://github.com/software-mansion/react-native-screens/pull/821#discussion_r633399356