I use a DrawerNavigator
from react-navigation in my app. Without any customization, the Android status bar is blue, and not black.
I tried to do
StatusBar.setBackgroundColor('#000000');
but it only works for a few seconds, and then it goes back to blue. It seems that something I am using set the status bar color to blue. However, I tried to remove all dependencies and only keep react-navigation, and it still happens and the docs of react-navigation do not say anything about that.
How can I set the status bar color to black with react-navigation ?