0

On my app, most of the app has a backgroundColor set to white, so, I want to set my statusbar to black, according to the documentation this should work:

<StatusBar barStyle={'dark-content'} translucent={true} />

but as you can see in the image: statusbar white

now if I just put a green background to check the statusbar I get this: enter image description here

What can I do to solve this issue?

2 Answers2

0

Try to add the backgroundColor prop and change the color u need, :)

   <StatusBar backgroundColor="#000000" barStyle="light-content"  />
Tahany DM
  • 1
  • 1
0

Putting

 <StatusBar backgroundColor="#000000" barStyle="light-content"  />

worked for me