Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong header height value for screens inside Native Stack inside another Native Stack with modal presentation on iOS #11945

Open
3 of 12 tasks
SrAnthony opened this issue Apr 17, 2024 · 0 comments

Comments

@SrAnthony
Copy link

Current behavior

Screens inside a Native Stack that is inside another presentation: 'modal' Native Stack have the header height value from the useHeaderHeight() hook incorrect on iOS (double what it should be).

This type of nesting happens when I want to show a modal with a stack of screens inside.

IMG_AB04CA659CE7-1

Expected behavior

The useHeaderHeight() hook should return the correct value for the header height on this situation.

Reproduction

https://snack.expo.dev/@sranthony/react-navigation-header-height-bug

Platform

  • Android
  • iOS
  • Web
  • Windows
  • MacOS

Packages

  • @react-navigation/bottom-tabs
  • @react-navigation/drawer
  • @react-navigation/material-top-tabs
  • @react-navigation/stack
  • @react-navigation/native-stack
  • react-native-tab-view

Environment

  • I've removed the packages that I don't use
package version
@react-navigation/native 6.1.17
@react-navigation/native-stack 6.9.26
react-native-screens 3.29.0
react-native 73
expo 50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant