Improve android splash screen style
This commit is contained in:
parent
97d6e1dffc
commit
89c65d7070
2 changed files with 6 additions and 2 deletions
|
@ -23,7 +23,7 @@ public class MainActivity extends ReactActivity {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
SplashScreen.show(this);
|
SplashScreen.show(this, R.style.SplashScreenTheme);
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -7,4 +7,8 @@
|
||||||
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
|
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
|
||||||
<item name="colorPrimary">@color/colorPrimary</item>
|
<item name="colorPrimary">@color/colorPrimary</item>
|
||||||
</style>
|
</style>
|
||||||
|
<style name="SplashScreenTheme" parent="SplashScreen_SplashTheme">
|
||||||
|
<item name="android:navigationBarColor">@color/activityBackground</item>
|
||||||
|
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
|
||||||
|
</style>
|
||||||
</resources>
|
</resources>
|
Loading…
Reference in a new issue