Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make StatusBar transparent?

Does anyone know a way to make Android Status Bar transparent with React Native?

NOT TRANSLUCENT, Transparent.

I am using react-navigation too.

like image 991
Giorgos Kartalis Avatar asked Sep 20 '18 14:09

Giorgos Kartalis


People also ask

How do I change my status bar to white?

Step 1: After opening the android studio and creating a new project with an empty activity. Step 2: Navigate to res/values/colors. xml, and add a color that you want to change for the status bar.

How can set action bar transparent in Android?

In my manifest file I put android:theme="@style/AppTheme. ActionBar. Transparent" in the activity tag as shown and it would not work for me. Then I moved it inside the application tag (line 11 for me) and it worked.


1 Answers

Just use it like this: Tested with: "react-native": "0.60.4" and "0.61.5"

<StatusBar translucent backgroundColor="transparent" /> 
like image 90
Felipe Rugai Avatar answered Oct 02 '22 15:10

Felipe Rugai