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
In Landscope mode, immersion does not work. #19
Comments
In landscape mode, |
Hey @pk936 @liquidvisual, which Android version are you experiencing this issue on? I checked on Android 11 and 12. It works fine. |
@kadiraydinli Did you try my code as I mentioned ? After you rotate your device, the immersion mode should be activated after 2 seconds. automatically. |
@pk936 Yes, I tried the same way. video.mov |
I can confirm that SystemNavigationBar.navigationHide().then(res => {
console.log('Code reached res section, ' + res);
}, err => {
console.log('Code reached err section, ' + err);
}); And the output I get from the console is: Code reached err section, TypeError: null is not an object (evaluating 'NavigationBar.navigationHide') I did dig in and see you are using NativeModules.NavigationBar.navigationHide(); I got the following error: TypeError: null is not an object (evaluating '_reactNative.NativeModules.NavigationBar.navigationHide') And when I tried |
I want to add to this, for us its also not working on a Samsung Tablet Android 12. The bar disappears but the screen height is not adjusted there is now a grey area where the bar used to be. |
I made changes for this issue, you can find it in the latest version. |
Hey! did you managed to make the grey area disappear? I'm having the same issue on Android 9 |
Hi @AlejandroAguilar99, I have released a new version. I think it will solve your issue. Can you use the latest version and test it? |
Thanks, but unfortunately it's still not working :/ |
@AlejandroAguilar99 What device are you testing? I can test mostly with Android emulators. I don't encounter this issue when I test it on emulators. Therefore, it becomes more difficult to solve the problem. I would be very grateful if you could share something like a sample snack for me. I want to test it in the same ambient conditions as I can. Thanks in advance. |
Sorry for not letting you know before, the problem was the width of the component, since I assigned the window dimension instead of the screen dimension, it works perfectly now |
When user changes the orientation to landscape, the navigation bar does not disappear.
It works only in portrait mode.
The text was updated successfully, but these errors were encountered: