react-native-extra-dimensions-android
                                
                                 react-native-extra-dimensions-android copied to clipboard
                                
                                    react-native-extra-dimensions-android copied to clipboard
                            
                            
                            
                        你好,有小米/华为/vivo这类手机虚拟导航条显示隐藏监听的方法吗
Google translate hasn't helped me with this. If you're able to ask this in English, I might be able to help
Google translate hasn't helped me with this. If you're able to ask this in English, I might be able to help

Is there a way to monitor whether the navigation bar is displayed?
ExtraDimensions.isSoftMenuBarEnabled() // bool
ExtraDimensions.getSoftMenuBarHeight() // NEW FEATURE. Returns 0 if hidden
ok, I will try
not so good, can't working in my xiaomi's device
@ReactMethod public void isVirtualBarHidden(final Promise promise){ WritableMap map = Arguments.createMap(); Boolean isHidden = (Settings.Global.getInt(context.getContentResolver(), "force_fsg_nav_bar", 0) != 0); map.putBoolean("isHidden", isHidden); promise.resolve(map); }
@ReactMethod public void isVirtualBarHidden(final Promise promise){ WritableMap map = Arguments.createMap(); Boolean isHidden = (Settings.Global.getInt(context.getContentResolver(), "force_fsg_nav_bar", 0) != 0); map.putBoolean("isHidden", isHidden); promise.resolve(map); }
Hello, how do you add this