File tree Expand file tree Collapse file tree 3 files changed +14
-0
lines changed
android/src/main/res/values Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -201,6 +201,16 @@ Open `android/app/src/main/res/values/styles.xml` and add `<item name="android:w
201
201
** To learn more see [ examples] ( https://github.com/crazycodeboy/react-native-splash-screen/tree/master/examples ) **
202
202
203
203
204
+ If you want to customize the color of the status bar when the splash screen is displayed:
205
+
206
+ Create ` android/app/src/main/res/values/colors.xml ` and add
207
+ ``` xml
208
+ <?xml version =" 1.0" encoding =" utf-8" ?>
209
+ <resources >
210
+ <color name =" primary_dark" ><!-- Colour of your status bar here --> </color >
211
+ </resources >
212
+ ```
213
+
204
214
### iOS
205
215
206
216
Customize your splash screen via LaunchImage or LaunchScreen.xib,
Original file line number Diff line number Diff line change 3
3
<item type =" layout" name =" launch_screen" >
4
4
@layout/launch_screen
5
5
</item >
6
+ <item type =" color" name =" primary_dark" >
7
+ @color/primary_dark
8
+ </item >
6
9
</resources >
Original file line number Diff line number Diff line change 5
5
6
6
<style name =" SplashScreen_SplashTheme" parent =" Theme.AppCompat.NoActionBar" >
7
7
<item name =" android:windowAnimationStyle" >@style/SplashScreen_SplashAnimation</item >
8
+ <item name =" colorPrimaryDark" >@color/primary_dark</item >
8
9
</style >
9
10
<style name =" SplashScreen_Fullscreen" parent =" SplashScreen_SplashTheme" >
10
11
<item name =" android:windowFullscreen" >true</item >
You can’t perform that action at this time.
0 commit comments