Skip to content
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

androidNavigationBar not working after create build APK #28394

Open
DavidFilipeG opened this issue Apr 23, 2024 · 2 comments
Open

androidNavigationBar not working after create build APK #28394

DavidFilipeG opened this issue Apr 23, 2024 · 2 comments
Labels
Android needs review Issue is ready to be reviewed by a maintainer

Comments

@DavidFilipeG
Copy link

Summary

I want to create an app where the user cannot exit through the andriod navigation bar, I am adding the androidNavigationBar to the app.json file and saying that visible = 'immersive'. When I'm developing using npx expo start I get what I want but when I create an apk the navigation bar is always visible

What platform(s) does this occur on?

Android

SDK Version

50.0.17

Environment

expo-env-info 1.2.0 environment info:
System:
OS: Windows 11 10.0.22631
Binaries:
Node: 20.9.0 - C:\Program Files\nodejs\node.EXE
npm: 10.2.4 - C:\Program Files\nodejs\npm.CMD
npmPackages:
expo: ^50.0.17 => 50.0.17
react: 18.2.0 => 18.2.0
react-native: 0.73.2 => 0.73.2
Expo Workflow: bare

Minimal reproducible example

image

supposedly the android navigation bar shouldn't be showing

@DavidFilipeG DavidFilipeG added CLI Versioned Expo CLI -- `npx expo start` needs validation Issue needs to be validated labels Apr 23, 2024
@expo-bot expo-bot removed the needs validation Issue needs to be validated label Apr 23, 2024
@byCedric byCedric added Android needs review Issue is ready to be reviewed by a maintainer and removed CLI Versioned Expo CLI -- `npx expo start` labels Apr 23, 2024
@DavidFilipeG DavidFilipeG changed the title androidNavigationBar not workink after create build APK androidNavigationBar not working after create build APK Apr 24, 2024
@alanjhughes
Copy link
Collaborator

Hi @DavidFilipeG - The android navigation bar cannot be completely hidden and you cannot stop the user from using it to leave the app. The immersive setting will hide the bar but when when the user interacts with the screen, it will return. It's intended use it if you have some content like a video where you want to remove everything from the screen but that element. It is not a way to prevent the user from using the nav bar.

@DavidFilipeG
Copy link
Author

Hi @alanjhughes I needed my app to always have the navigationbar hidden. How can I do it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Android needs review Issue is ready to be reviewed by a maintainer
Projects
None yet
Development

No branches or pull requests

4 participants