简体   繁体   English

隐藏 android 底部按钮使用 expo 构建本机反应

[英]Hide android bottom buttons react native using expo build

I have a problem, that I want to hide bottom buttons on android system in my app.我有一个问题,我想在我的应用程序中隐藏 android 系统的底部按钮。 I use expo build for my app.我为我的应用程序使用 expo 构建。 Tried other solutions that I saw on stackoverflow, but it didn't worked.尝试了我在stackoverflow上看到的其他解决方案,但没有奏效。 I installed libraries "react-native-immersive" and "react-native-immersive-mode" and got an error.我安装了库“react-native-immersive”和“react-native-immersive-mode”,但出现错误。 expo error expo 错误

The Expo configuration file app.json at the root of your project it is possible to control the way the bottom bar of Android behaves with the "androidNavigationBar" property.项目根目录下的 Expo 配置文件app.json可以通过"androidNavigationBar"属性控制 Android 底部栏的行为方式。

app.json app.json

{
  "androidNavigationBar": {
    "visible": "immersive",
  }
}

You can review the documentation following the following link: Configuration with app.json - Expo Documentation您可以通过以下链接查看文档: 使用 app.json 进行配置 - Expo 文档

Expo documentation is very well done and it will be easy for you to get information to do things correctly, greetings. Expo 文档做得很好,您很容易获得正确做事的信息,问候。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM