React-native-splash-screen: Statusbar - How to achieve white background and black icons?

Created on 13 Dec 2017  路  5Comments  路  Source: crazycodeboy/react-native-splash-screen

Just can't seem to get it right.
I have
<color name="primary_dark">#ffffff</color>
In my colors.xml to make the background white, but the icons are also white.

Most helpful comment

To getting white background and black icons (dark-content), you will need to change the following file:
android/app/src/main/res/values/styles.xml

Add the code bellow:

<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
  <item name="android:windowLightStatusBar">true</item>
  <item name="android:statusBarColor">#ffffff</item>
</style>

All 5 comments

me too, do you solve the problem?

No, I have not...

To getting white background and black icons (dark-content), you will need to change the following file:
android/app/src/main/res/values/styles.xml

Add the code bellow:

<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
  <item name="android:windowLightStatusBar">true</item>
  <item name="android:statusBarColor">#ffffff</item>
</style>

Hey @ramonsenadev , it's working , Thanks

@ramonsenadev brilliant, this should be added to the readme file.

Was this page helpful?
0 / 5 - 0 ratings