Closed Sondago closed 1 year ago
Hi, what is the brand, model and Android version of the device you are using?
I'm using an OnePlus 7 on Android 11 but i tried on some other devices and i got the same problem
@Sondago Can you check again with the latest version? If the problem persists, can you share sample code?
@kadiraydinli I'm having this issue too. I'm using both an Emulator with API level 29 and my own physical samsung S20+ (API level 31) . In API level 30 setSystemUiVisibility and all related constants are deprecated in favor of WindowInsetsController. I ran some tests and using this snippet it works, but I still can't understand why it does not with the old method. Maybe the bit masking is not correct ?
if (light) {
getWindow.getDecorView()
.getWindowInsetsController()
.setSystemBarsAppearance(WindowInsetsController.APPEARANCE_LIGHT_NAVIGATION_BARS,
WindowInsetsController.APPEARANCE_LIGHT_NAVIGATION_BARS
);
} else {
getWindow.getDecorView().getWindowInsetsController().setSystemBarsAppearance(0,
WindowInsetsController.APPEARANCE_LIGHT_NAVIGATION_BARS
);
}
@kadiraydinli for me it's fixed thanks you very much !
I made changes for this issue, you can find it in the latest version.
Hi, i recently installed your library and when i want to "setNavigationColor" with "light bar" on true, buttons doesn't color in "black". I'm on react native v0.69. Can you help me please ?