[英]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
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.