diff --git a/android/app/src/main/java/com/rntypescriptboilerplate/MainActivity.java b/android/app/src/main/java/com/rntypescriptboilerplate/MainActivity.java index 1400d21..c2c8236 100644 --- a/android/app/src/main/java/com/rntypescriptboilerplate/MainActivity.java +++ b/android/app/src/main/java/com/rntypescriptboilerplate/MainActivity.java @@ -1,11 +1,16 @@ package com.rntypescriptboilerplate; - +import android.os.Bundle; import com.facebook.react.ReactActivity; import com.facebook.react.ReactActivityDelegate; import com.facebook.react.ReactRootView; +import org.devio.rn.splashscreen.SplashScreen; public class MainActivity extends ReactActivity { - + @Override + protected void onCreate(Bundle savedInstanceState) { + SplashScreen.show(this); + super.onCreate(savedInstanceState); + } /** * Returns the name of the main component registered from JavaScript. This is used to schedule * rendering of the component. diff --git a/android/app/src/main/java/com/rntypescriptboilerplate/MainApplication.java b/android/app/src/main/java/com/rntypescriptboilerplate/MainApplication.java index b762101..35c82c6 100644 --- a/android/app/src/main/java/com/rntypescriptboilerplate/MainApplication.java +++ b/android/app/src/main/java/com/rntypescriptboilerplate/MainApplication.java @@ -13,7 +13,7 @@ import java.lang.reflect.InvocationTargetException; import java.util.List; import com.facebook.react.bridge.JSIModulePackage; -import com.swmansion.reanimated.ReanimatedJSIModulePackage; +import com.swmansion.reanimated.ReanimatedJSIModulePackage; public class MainApplication extends Application implements ReactApplication { diff --git a/android/app/src/main/res/layout/launch_screen.xml b/android/app/src/main/res/layout/launch_screen.xml new file mode 100644 index 0000000..463757f --- /dev/null +++ b/android/app/src/main/res/layout/launch_screen.xml @@ -0,0 +1,6 @@ + + + + diff --git a/android/app/src/main/res/values/colors.xml b/android/app/src/main/res/values/colors.xml new file mode 100644 index 0000000..041821f --- /dev/null +++ b/android/app/src/main/res/values/colors.xml @@ -0,0 +1,4 @@ + + + #000000 +