-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
UIManager.measureInWindow on android not work as document #29638
Comments
|
|
@safaiyeh just checked this on RNTester and it seems that the comment is wrong. On Android, the The function will return Note: haven't tested the behavior on iOS. |
Related issue #19497 |
@safaiyeh Just confirmed there is a feature parity problem between iOS and Android. The ios return y with status bar height while the android implementation does not. This issue is first discovered on #19497 and mentioned on RN Issue Triage Group 2 #24029. I already make WIP PR on this but need a proper review from the React Native team. ( Multi Window problem, etc.,) |
@gedeagas appreciate the PR! |
Hey there! |
collapsable: false |
Thanks! Indeed, |
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
This issue was closed because it has been stalled for 7 days with no activity. |
Confirming that |
Description
UIManager.measureInWindow on android not work as document.
in ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModule.java
it saids that
.But in _ReactAndroid/src/main/java/com/facebook/react/uimanager/NativeViewHierarchyManager.java
React Native version 0.60.5,it removes the status bar from the height
and in lateset version ,it subtract visibleWindowCoords(the master version)
React Native version:
React Native version 0.60.5
Steps To Reproduce
Expected Results
absolute position including things like the status bar
The text was updated successfully, but these errors were encountered: