kadiraydinli / react-native-system-navigation-bar

React Native lets you customize the navigation bar for Android.
https://www.npmjs.com/package/react-native-system-navigation-bar
MIT License
270 stars 19 forks source link

problem when used with StatusBar component #17

Closed Pkcarreno closed 2 years ago

Pkcarreno commented 2 years ago

I am using this property and it changes depending on if I have dark mode enabled

SystemNavigationBar.setNavigationColor(0xff00ff00, false);

when I have a <StatusBar /> with backgroundColor and barStyle defined, my <StatusBar /> ignore my custom barStyle and change status icons colors with that function

I have a screen that in its light mode uses a dark color at the top, when the function sets the dark icons become unreadable

I don't know if there is currently any way to handle this problem

Thank you very much for sharing this library.

alessioemireni commented 2 years ago

+1 same here

kadiraydinli commented 2 years ago

Hi guys, I did some changes to solve this problem. You can browse the new version; https://github.com/kadiraydinli/react-native-system-navigation-bar/releases/tag/v2.0.0

I am closing this issue for now, if your the problem persists, feel free to reopen the issue.