From 803274fb00c2ba3aa54e14b473dc4fb995025496 Mon Sep 17 00:00:00 2001 From: Sujeet Kumar <49394996+getsettalk@users.noreply.github.com> Date: Wed, 2 Nov 2022 23:47:53 -0400 Subject: [PATCH 1/2] updated Readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9eb674f9..4a8d902a 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 ... From 259429e6f081350393e5a5de25f62fff673656ab Mon Sep 17 00:00:00 2001 From: Sujeet Kumar <49394996+getsettalk@users.noreply.github.com> Date: Thu, 3 Nov 2022 00:10:19 -0400 Subject: [PATCH 2/2] updated Third step(Plugin Configuration): added to Third step(Plugin Configuration): for MainActivity.java file clear all doubt --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 4a8d902a..6782dd34 100644 --- a/README.md +++ b/README.md @@ -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:**