1

Is there a method to set background color or transparent Statusbar on iOS?

"react-native": "0.54.2"

enter image description here

istruble
  • 13,363
  • 2
  • 47
  • 52
Stefano Toppi
  • 626
  • 10
  • 28

3 Answers3

0

You could check this question, it would be very helpful.

You could also use something like this: <StatusBar hidden={false} barStyle="light-content" />

This will give you the following look in iOS

enter image description here

0

Just use this

<StatusBar translucent backgroundColor="transparent" />
gypsicoder
  • 5,416
  • 5
  • 24
  • 38
-1

You can use the rgba property, it holds 3 values, r stands for red g stands for green and b for blue. The a stands for alpha, The alpha parameter is a number between 0.0 (fully transparent) and 1.0 (fully opaque). A rgba value would look something like this ==>

backgroundColor: 'rgba(34,32,225, .6)'