While using measureInWindow
, the y
value is off
#2539
Labels
Platform: Android
This issue is specific to Android
Platform: iOS
This issue is specific to iOS
Platform: Web
This issue is specific to web
Repro provided
A reproduction with a snack or repo is provided
Description
Reposting issue reported here as asked: react-navigation/react-navigation#12294
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.Steps to reproduce
npm install && npm run dev
to install the dependencies and start Expo Go in an iOS simulator.w
in the terminal running metroa
in the terminal running metrogit checkout transparent-header
, reload the apps and see the difference.Snack or a link to a repository
https://github.com/mrzachnugent/react-navigation-measure-in-window-repro
Screens version
4.1.0
React Native version
0.76.3
Platforms
Android, iOS, Web
JavaScript runtime
Hermes
Workflow
Expo managed workflow
Architecture
Fabric (New Architecture)
Build type
None
Device
iOS simulator
Device model
No response
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: