@@ -99,7 +99,7 @@ public class MainApplication extends Application implements ReactApplication {
99992 . Go to ` node_modules ` ➜ ` react-native-splash-screen ` and add ` SplashScreen.xcodeproj `
1001003 . In XCode, in the project navigator, select your project. Add ` libSplashScreen.a ` to your project's ` Build Phases ` ➜ ` Link Binary With Libraries `
1011014 . To fix ` 'SplashScreen.h' file not found ` , you have to select your project → Build Settings → Search Paths → Header Search Paths to add:
102-
102+
103103 ` $(SRCROOT)/../node_modules/react-native-splash-screen/ios `
104104
105105
@@ -203,14 +203,29 @@ Open `android/app/src/main/res/values/styles.xml` and add `<item name="android:w
203203
204204If you want to customize the color of the status bar when the splash screen is displayed:
205205
206- Create ` android/app/src/main/res/values/colors.xml ` and add
206+ Create ` android/app/src/main/res/values/colors.xml ` and add
207207``` xml
208208<?xml version =" 1.0" encoding =" utf-8" ?>
209209<resources >
210- <color name =" primary_dark " ><!-- Colour of your status bar here --> </color >
210+ <color name =" status_bar_color " ><!-- Colour of your status bar here --> </color >
211211</resources >
212212```
213213
214+ Create a style definition for this in ` android/app/src/main/res/values/colors.xml ` :
215+ ``` xml
216+ <?xml version =" 1.0" encoding =" utf-8" ?>
217+ <resources >
218+ <style name =" SplashScreenTheme" parent =" SplashScreen_SplashTheme" >
219+ <item name =" colorPrimaryDark" >@color/status_bar_color</item >
220+ </style >
221+ </resources >
222+ ```
223+
224+ Change your ` show ` method to include your custom style:
225+ ``` java
226+ SplashScreen . show(this , false , R . style. SplashScreenTheme );
227+ ```
228+
214229### iOS
215230
216231Customize your splash screen via LaunchImage or LaunchScreen.xib,
0 commit comments