-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[Android] Wrong menu position in Menu component #4493
Comments
Hey, yes, there seems to be something on Android that requires a deeper investigation. Would you like to contribute? |
I think the regression comes from this commit in Expo: https://github.com/expo/expo/pull/28014/files Constants from expo-constants are not exported anymore so We could use Or maybe using |
Yes, there is a comment that we should replace it with
|
I am working on a PR to fix that. |
Hello, |
Hello, I have this fix in my code: import Constants from 'expo-constants'
<Menu
statusBarHeight={Constants.statusBarHeight}
...
/> The PR with the fix is still open... |
+1, @alex-fournier solution worked for me |
Current behaviour
In Menu component, the menu is not positioned as expected when visible. For example with
anchorPosition="bottom"
, the menu comes over the anchor.Expected behaviour
The menu should appear under anchor.
How to reproduce?
https://snack.expo.dev/@alexfournier/ludicrous-green-churros
Tested with two physical devices: Google Pixel 7 and Samsung Galaxy S24.
What have you tried so far?
When passing the correct status bar height using
statusBarHeight
, it works fine. I think this piece of code is not working as expected as it returns 0 on my two devices:Your Environment
The text was updated successfully, but these errors were encountered: