Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

你好,有小米/华为/vivo这类手机虚拟导航条显示隐藏监听的方法吗 #40

Open
darkfiredarkhalo opened this issue Dec 24, 2018 · 7 comments

Comments

@darkfiredarkhalo
Copy link

No description provided.

@darkfiredarkhalo darkfiredarkhalo changed the title 你好,有虚拟导航条显示隐藏监听的方法吗 你好,有小米/华为/vivo这类手机虚拟导航条显示隐藏监听的方法吗 Dec 24, 2018
@Sunhat
Copy link
Owner

Sunhat commented Feb 21, 2019

Google translate hasn't helped me with this. If you're able to ask this in English, I might be able to help

@mirse
Copy link

mirse commented Mar 14, 2019

Google translate hasn't helped me with this. If you're able to ask this in English, I might be able to help

image

Is there a way to monitor whether the navigation bar is displayed?

@Sunhat
Copy link
Owner

Sunhat commented Mar 14, 2019

ExtraDimensions.isSoftMenuBarEnabled() // bool

ExtraDimensions.getSoftMenuBarHeight() // NEW FEATURE. Returns 0 if hidden

@mirse
Copy link

mirse commented Mar 18, 2019

ok, I will try

@rockstone001
Copy link

not so good, can't working in my xiaomi's device

@wanghe826
Copy link

@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);
}

@caijiami
Copy link

caijiami commented Jun 3, 2021

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants