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.

[3.2.0] iOS modal with header

See original GitHub issue

Description

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

github_iconTop GitHub Comments

1reaction
WoLewickicommented, May 18, 2021

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.

1reaction
WoLewickicommented, May 17, 2021
Read more comments on GitHub >

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

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