-
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
Modal showing activity bar when it should not (using SystemNavigationBar - edit: using java code produces the same bug) #37801
Comments
|
Note: I'm using specific packages wich require specific versions of others in my project and I can't change versions that easily. |
UpdateI tried with java (I made a bridge between java and react native) to test:
import android.app.Activity;
import android.view.WindowInsets;
import android.view.WindowInsetsController;
import android.view.WindowManager;
@ReactMethod
public void hideSystemBars() {
Activity currentActivity = getCurrentActivity();
if (currentActivity != null) {
currentActivity.runOnUiThread(() -> {
WindowInsetsController controller = currentActivity.getWindow().getDecorView().getWindowInsetsController();
if (controller != null) {
controller.hide(WindowInsets.Type.statusBars() | WindowInsets.Type.navigationBars());
}
currentActivity.getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
});
}
} And the problem persists. |
Problem persist in 0.71.10. |
@cortinico Is this a known issue , A PR has also been raised with the fix,Is this in the pipeline, Thanks in advance |
Don't you mind following up on the PRs comments that @lunaleaps left then? |
This issue is currently making it impossible to use Looking forward to any updates here. |
For anyone looking for a workaround, I've opted to stop using |
Facing a similar issue by adding in my
I'm trying to achieve edge-to-edge experience in my app and it's working fine by using |
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 is still open |
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 is still open |
Description
I'm using SystemNavigationBar to hide my status and activity bars, in order to be able to use the full screen for the app I'm currently developing.
The bug I'm facing (as many others faced already) consists on those same bars appearing when a modal is shown.
This is already a known issue on the package repo, but I could not find any issue regarding this problem on the react-native repo. Ence, I'm creating one.
This issue seems to have appeared before on react-native's repo:
f8a4d28
Is there any fix?
Thanks in advance for any support and help.
React Native Version
0.71.4
Output of
npx react-native info
Steps to reproduce
SystemNavigationBar.fullScreen(true);
inside your functionSnack, code example, screenshot, or link to a repository
App.tsx
Buttons.tsx
Example:
Here, we can see that, at the bottom, after clicking on the open modal button, the bar appears, where it should not.
The text was updated successfully, but these errors were encountered: