Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
...
Expand Down Expand Up @@ -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:**

Expand Down