diff --git a/README.md b/README.md index 9eb674f9..6782dd34 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,7 @@ include ':react-native-splash-screen' project(':react-native-splash-screen').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-splash-screen/android') ``` -2. In your android/app/build.gradle file, add the `:react-native-splash-screen` project as a compile-time dependency: +2. In your `android/app/build.gradle` file, add the `:react-native-splash-screen` project as a compile-time dependency: ```java ... @@ -136,6 +136,15 @@ public class MainActivity extends ReactActivity { // ...other code } ``` +>if `MainActivity.java` file have: +``` + @Override + protected void onCreate(Bundle savedInstanceState) { + SplashScreen.show(this); // here new added by you + super.onCreate(null); <--- if have have null value than change it to --> super.onCreate(savedInstanceState); + } +``` + **iOS:**