Is it possible to make StatusBar
semi-transparent with an opacity of 0.8?
if I pass backgroundColor={"transparent"} like in the docs it becomes fully transparent without color. Docs https://reactnative.dev/docs/statusbar
<StatusBar style="light" backgroundColor={"red"} translucent />
2
Answers
This is how i did it. Under
StatusBar
added a View withheight: insets.top
and style forStatusBar
. This works for both OS platforms.You can give
backgroundColor
as#FF000080
, and you can change color transparency by changing the last 2 digits of#FF000080