简体   繁体   English

在Android设备上的应用程序中隐藏默认导航栏

[英]Hiding default navigation bar in app on Android devices

Currently working on a fullscreen mobile app, building using react-native. 目前正在开发全屏移动应用,并使用react-native进行构建。 I have managed to hide the status bar and default navigation bar on Android devices. 我设法在Android设备上隐藏状态栏和默认导航栏。 However, when I start to put in text input tags that prompts a keyboard on the screen, the default navigation bar re-appears and could not be hidden even I've dismissed the keyboard. 但是,当我开始插入文本输入标签以在屏幕上提示键盘时,默认的导航栏会重新出现,即使我已经关闭了键盘也无法隐藏。

Is there any way to prevent the default navigation bar re-appears when the keyboard pops up? 有什么方法可以防止键盘弹出时默认导航栏再次出现?

The reasons are that I need to remove the navigation bar to have enough space to locate the needed components on the app UI design. 原因是我需要删除导航栏以具有足够的空间来在应用程序UI设计上定位所需的组件。 If the navigation bar re-appears the design will be messed up. 如果重新出现导航栏,则设计将被弄乱。 Thank you for any advice. 感谢您的任何建议。

I think this is what you're looking for: 我认为这是您要寻找的:

    static navigationOptions = {
        header: null,
  };

Put this on top of each screen 把它放在每个屏幕的顶部

Any update on that? 有什么更新吗? I have the same issue. 我有同样的问题。

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

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