-
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
useWindowDimensions() wrong height on Android Fullscreen Landscape #33735
Comments
Setting both padding and margin to 0 didn't solve the issue
|
Hi @3GOMESz, could you update the issue with one of the template we provide? It will give us more information to help you with the issue (if it is still valid) |
Done |
This bug also exists in portrait mode on Android when using full screen mode for react native version @cipolleschi this seems like a critical bug with |
I just see that the version is 0.65. We don't support that version anymore. Could you try and verify if the error persists in 0.69, 0.70 or 0.71 which are the versions we are committed to support at the moment? Thank you so much. |
|
@cipolleschi the bug in portrait mode exists in the supported versions. I think if the app is in full screen mode on Android, window height should include the status bar and bottom navigation bar |
@cortinico any idea on this? can we onboard someone else with more experience in the runtime to have a look at this issue? |
@javache do you have any insights here? |
This issue is waiting for author's feedback since 24 days. Please provide the requested feedback or this will be closed in 7 days. |
This issue was closed because the author hasn't provided the requested feedback after 7 days. |
This issue is waiting for author's feedback since 24 days. Please provide the requested feedback or this will be closed in 7 days. |
1 similar comment
This issue is waiting for author's feedback since 24 days. Please provide the requested feedback or this will be closed in 7 days. |
The issue still exists. I worked around this limitation for Android by using Dimensions.get('screen').height instead of Dimensions.get('window').height. |
Issue still happening. React-native v0.68.0 Workaround suggested by @brandtnewww works for me. |
Sorry @its-acarn, but React Native 0.68 is not supported anymore, as per our Support Window Policy. Please update to a supported version of React Native. |
Will do - thanks. |
I'm still seeing this issue as of November 3, 2023, with the following library versions: I have been using a view with |
This issue applies to newer supported versions of react native too. Can we remove the "Unsupported Version" label? |
As the original author is unresponsive, @joeporpeglia could you open a new issue + reproducer against 0.73? |
Yup, see #41918 |
Great thank you, closing in favor of #41918 |
Android landscape, fullscreen without system's Status Bar or Navigation Bar.
Version
^0.65.2
Output of
npx react-native info
System:
OS: macOS 12.3.1
CPU: (8) arm64 Apple M1
Memory: 151.89 MB / 8.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 16.14.0 - /usr/local/bin/node
Yarn: 1.22.17 - /usr/local/bin/yarn
npm: 8.9.0 - /usr/local/bin/npm
Watchman: 2022.03.21.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.11.3 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 21.4, iOS 15.4, macOS 12.3, tvOS 15.4, watchOS 8.5
Android SDK:
API Levels: 28, 29, 30, 31, 32
Build Tools: 29.0.2, 30.0.2, 31.0.0, 32.0.0, 32.1.0, 33.0.0
System Images: android-32 | Google APIs ARM 64 v8a
Android NDK: 23.1.7779620
IDEs:
Android Studio: 2021.1 AI-211.7628.21.2111.8193401
Xcode: 13.3/13E113 - /usr/bin/xcodebuild
Languages:
Java: 11.0.14.1 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.2 => 17.0.2
react-native: 0.65.2 => 0.65.2
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found
Snack, code example, screenshot, or link to a repository
My
MainActivity.java
'sonCreate
:Originally posted by @runtothedoor in #29290 (comment)
The text was updated successfully, but these errors were encountered: