File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,11 @@ dependencies {
64643 . Update the MainApplication.java file to use ` react-native-splash-screen ` via the following changes:
6565
6666``` java
67+ // react-native-splash-screen >= 0.3.1
68+ import org.devio.rn.splashscreen.SplashScreenReactPackage ;
69+ // react-native-splash-screen < 0.3.1
6770import com.cboy.rn.splashscreen.SplashScreenReactPackage ;
71+
6872public class MainApplication extends Application implements ReactApplication {
6973
7074 private final ReactNativeHost mReactNativeHost = new ReactNativeHost (this ) {
@@ -109,6 +113,9 @@ Update the `MainActivity.java` to use `react-native-splash-screen` via the follo
109113``` java
110114import android.os.Bundle ;
111115import com.facebook.react.ReactActivity ;
116+ // react-native-splash-screen >= 0.3.1
117+ import org.devio.rn.splashscreen.SplashScreen ; // here
118+ // react-native-splash-screen < 0.3.1
112119import com.cboy.rn.splashscreen.SplashScreen ; // here
113120
114121public class MainActivity extends ReactActivity {
You can’t perform that action at this time.
0 commit comments