Skip to content

Commit 94aacc6

Browse files
committed
Update README for 0.3.1 changes
1 parent a99fcda commit 94aacc6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,11 @@ dependencies {
6464
3. 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
6770
import com.cboy.rn.splashscreen.SplashScreenReactPackage;
71+
6872
public 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
110114
import android.os.Bundle;
111115
import 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
112119
import com.cboy.rn.splashscreen.SplashScreen; // here
113120

114121
public class MainActivity extends ReactActivity {

0 commit comments

Comments
 (0)