Header Height jumps with nested navigators
See original GitHub issueWhen you have a nested navigators like this: NativeStack -> BottomTabs -> NativeStack
, it creates issues when rendering the header from the innermost NativeStack. Only appears to happen when there some other navigator anywhere between two NativeStack ones. For example Stack -> BottomTabs -> NativeStack
works correctly and NativeStack -> NativeStack
work correctly.
This seems to be the same bug as #540.
https://github.com/dotconnor/ScreensHeader
Expected
Actual
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:31 (16 by maintainers)
Top Results From Across the Web
Screen options with nested navigators
In this document we'll explain how screen options work when there are multiple navigators. It's important to understand this so that you put...
Read more >How to navigate between different nested stacks in react ...
Using react navigation, navigate from a screen in a navigator to a screen in a different navigator. More Detail. If I have the...
Read more >[Solved]-React Navigation get stack header height-React Native
Coding example for the question React Navigation get stack header height-React Native.
Read more >Intro to Navigation - the Draftbit Docs!
Go to Navigate tab from the top menu bar. · Select the Root Navigator and in the Properties panel, select the Configs tab...
Read more >React navigation causes screen to flicker with Stack ... - Reddit
Navigator > )} options={{ headerShown: false, tabBarIcon: ({ color }) ... For what it's worth, nesting stack navigators inside a bottom tab ...
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
@a-eid You have to patch react-navigation PR which is not merged yet. https://github.com/react-navigation/react-navigation/pull/9772
@WoLewicki Thanks for the PR.
I’ve tested with the PR and it fixes header jump but only for vertical. Horizontal jumps looks still there. simplified test: https://snack.expo.dev/IYo_xZr5a
Not know if this is another issue or not connected this issue though.
With SecondStack:
Without SecondStack:
Screenshots saved before the navigate transition ends.
With PR vertical jumps gone but horizontal still there:
https://user-images.githubusercontent.com/7578884/126715712-5fb11726-7848-4756-8af6-a8cd9852322e.mp4