File tree 1 file changed +7
-0
lines changed
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,11 @@ dependencies {
64
64
3 . Update the MainApplication.java file to use ` react-native-splash-screen ` via the following changes:
65
65
66
66
``` java
67
+ // react-native-splash-screen >= 0.3.1
67
68
import org.devio.rn.splashscreen.SplashScreenReactPackage ;
69
+ // react-native-splash-screen < 0.3.1
70
+ import com.cboy.rn.splashscreen.SplashScreenReactPackage ;
71
+
68
72
public class MainApplication extends Application implements ReactApplication {
69
73
70
74
private final ReactNativeHost mReactNativeHost = new ReactNativeHost (this ) {
@@ -109,7 +113,10 @@ Update the `MainActivity.java` to use `react-native-splash-screen` via the follo
109
113
``` java
110
114
import android.os.Bundle ;
111
115
import com.facebook.react.ReactActivity ;
116
+ // react-native-splash-screen >= 0.3.1
112
117
import org.devio.rn.splashscreen.SplashScreen ; // here
118
+ // react-native-splash-screen < 0.3.1
119
+ import com.cboy.rn.splashscreen.SplashScreen ; // here
113
120
114
121
public class MainActivity extends ReactActivity {
115
122
@Override
You can’t perform that action at this time.
0 commit comments