Open mrzachnugent opened 4 days ago
The versions mentioned in the issue for the following packages differ from the latest versions on npm:
@react-navigation/native
(found: 7.0.0
, latest: 7.0.4
)Can you verify that the issue still exists after upgrading to the latest versions of these packages?
Hey! Thanks for opening the issue. Seems that this issue is related to react-native-screens
library which is a dependency of React Navigation. Can you also post your issue in this repo so that it's notified to the maintainers of that library? This will help us fix the issue faster since it's upto the maintainers of that library to investigate it.
I can confirm that the version used in the package-lock.json
is using 7.0.4
for @react-navigation/native
Current behavior
Given a
useLayoutEffect
that calls themeasureInWindow
of a ref , they
value is off. It seems to be off by the header height on iOS and web. For Android, I'm not sure what is off by exactly.When the header is transparent or not shown, the
y
value frommeasureInWindow
is correct for iOS and web but it is still off on Android.See minimal reproduction repo for more details
Expected behavior
Given a
useLayoutEffect
that calls themeasureInWindow
of a ref , they
value should not be off.It was expected that the tooltip example from the react-native docs should work.
Reproduction
https://github.com/mrzachnugent/react-navigation-measure-in-window-repro
Platform
Packages
Environment