-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Header height not getting calculated in pageY value for components in new architecture #43500
Comments
@ManiTWIndia Thanks for reporting this. Can you try again on 0.74 + do a patch-package of software-mansion/react-native-screens#2028 and report back if the issue is fixed? |
Hi @cortinico I am facing some issues in using patch-package of react-native-screens. There are lot of commits after the last release version. Can we get a beta release of react-native-screens to test it out in local? |
Hi @ManiTWIndia, we will be releasing a new version of react-native-screens today (or tomorrow), so I believe beta won't be needed for now! 😄 |
@tboba @cortinico With and without header, its still showing the same pY value. I have updated and using the latest packages in the project. I have pushed the changes. Can you please check in the repo to reverify the issue? FYI, I am running the project with RN 0.73.6
|
@ManiTWIndia Yeah, I can reproduce that on your example. However, after changing the navigator from I'm curious why this bug still occurs on JS stack, maybe because it still uses |
Nope, only the version installed and linked into the project can impact it. |
@ManiTWIndia are you still able to reproduce on 0.74 with the latest version of react-native-screens? As I believe this is practically fixed |
It didn't work on normal stack probably due to my mistake with |
Closing as potentially fixed by: As @ManiTWIndia we haven't heard from you, we assume this is fixed. Please get back to us if this is not fixed. |
Description
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.
The issue happens in iOS new architecture only. In old architecture, the header height is taken into consideration when calculating pY value
Steps to reproduce
https://github.com/ManiTWIndia/stack-navigation-header-issue
React Native Version
0.73.6
Affected Platforms
Runtime - iOS
Areas
Fabric - The New Renderer
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://github.com/ManiTWIndia/stack-navigation-header-issue
Screenshots and Videos
iOS New architecture
iOS Old architecture
The text was updated successfully, but these errors were encountered: