leon 1 vuosi sitten
vanhempi
commit
78e151ad4a

+ 1 - 1
android/app/src/main/java/com/hola/MainActivity.java

@@ -77,7 +77,7 @@ public class MainActivity extends ReactActivity {
     int uiOptions = View.SYSTEM_UI_FLAG_HIDE_NAVIGATION;
     decorView.setSystemUiVisibility(uiOptions);
 
-    SplashScreen.show(this);
+    SplashScreen.show(this,R.style.Theme_FullScreenDialog,true);
     super.onCreate(null);
 
 //    demo2();

+ 5 - 0
android/app/src/main/res/values/styles.xml

@@ -7,4 +7,9 @@
         <item name="android:windowBackground">@android:color/transparent</item>
     </style>
 
+    <style name="FullScreenDialog" parent="Theme.AppCompat.Dialog">
+        <item name="android:windowFullscreen">true</item>
+        <item name="android:windowActionBarOverlay">true</item>
+    </style>
+
 </resources>