You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using default header from the stack navigation, facing inconsistency in pageY value of component rendered in old and new architecture. In the example screenshots, I am passing screenOptions={{headerStyle: {height: 150}}} to Stack navigator in React native new architecture and the pageY is being returned without taking the header height into consideration.
Expected behavior
But in old architecture in iOS, the header height is included in the pageY value.
The issue happens in iOS new architecture only. A lot of existing libraries we were using is getting affected when using the stack navigation in new architecture. In android, even with the new architecture the pageY value is the same including the header height in both old and new architecture.
Hey! This issue is closed and isn't watched by the core team. You are welcome to discuss the issue with others in this thread, but if you think this issue is still valid and needs to be tracked, please open a new issue with a repro.
In old architecture and in new architecture android, the pageY value is returned as expected. Even in iOS, when i use headerShown: false or custom header in react-navigation stack, the pageY value is returned as expected.
I am seeing this issue only when using the default header of react-navigation stack in new architecture. So please do have a look
Current behavior
When using default header from the stack navigation, facing inconsistency in pageY value of component rendered in old and new architecture. In the example screenshots, I am passing screenOptions={{headerStyle: {height: 150}}} to Stack navigator in React native new architecture and the pageY is being returned without taking the header height into consideration.
Expected behavior
But in old architecture in iOS, the header height is included in the pageY value.
The issue happens in iOS new architecture only. A lot of existing libraries we were using is getting affected when using the stack navigation in new architecture. In android, even with the new architecture the pageY value is the same including the header height in both old and new architecture.
Reproduction
https://github.com/ManiTWIndia/stack-navigation-header-issue
Platform
Packages
Environment
The text was updated successfully, but these errors were encountered: