简体   繁体   English

有什么方法可以在react native(expo)中检测到Android软导航栏吗?

[英]Is there any way that we can detect android soft navigation bar in react native(expo )?

Is there any way in react-native to know if an android device has soft navigations keys (the bottom buttons). 有没有办法在react-native中知道android设备是否具有软导航键(底部按钮)。 For example, in Xaiomi Mi 8 the navigations keys are configurable and can be removed. 例如,在小米Mi 8中,导航键是可配置的,可以将其删除。

In my use case, My view changes if the device navigations keys are shown or not. 在我的用例中,无论是否显示设备导航键,我的视图都会改变。

You can try this module 你可以试试这个模块

react-native-detect-navbar-android

Refer Here 在这里参考

This module tells if android device has soft navigation bar or not. 该模块告诉android设备是否具有软导航栏。

Hope this works for you ! 希望这对您有用!

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

相关问题 如何以编程方式检测android中可用的底部软导航栏? - How to detect bottom soft navigation bar available in android programmatically? 有什么方法可以在 React 本机 android 中检测最近的电话通话时间 - Is there any way to detect recent phone call duration in React native android 在 React Native 中隐藏 Android 导航栏 - Hide Android Navigation Bar in React Native Android和React Native顶部导航栏 - Android and React Native top navigation Bar React Native Android 导航栏半透明 - React Native Android Navigation Bar Translucent expo react native android 在堆栈导航错误下点击屏幕 - expo react native android clicking screen under stack navigation error 检测何时使用 React Native、expo for android 拍摄新屏幕截图 - Detect when new screenshot is taken using React native, expo for android “软启动”使用Expo构建的新React Native应用的最佳方法是什么? - What is the best way to 'soft launch' a new React Native app built using Expo? 运行“expo eject”后,只显示 android package。 有什么办法可以像常规的 React Native 项目一样获取 ios 文件夹? - After running the 'expo eject' only the android package shows up. Is there any way I can get the ios folders like a regular react native project? 如何使用Titanium隐藏Android上的软导航栏? - How to hide the soft navigation bar on Android with Titanium?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM