react-native-bootsplash 4.3.0 → 4.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +10 -16
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -104,8 +104,6 @@ public class MainApplication extends Application implements ReactApplication {
104
104
 
105
105
  ## Setup
106
106
 
107
- ℹ️ For `react-native` < `0.68` setup, follow the [`v4.1.3 README.md`](https://github.com/zoontek/react-native-bootsplash/blob/4.1.3/README.md) (it will works with the latest `react-native-bootsplash` version too).
108
-
109
107
  ### Assets generation
110
108
 
111
109
  In order to speed up the setup, we provide a **CLI** to generate assets, create the Android Drawable XML file and the iOS Storyboard file automatically ✨.
@@ -183,7 +181,7 @@ _⚠️  Only `.storyboard` files are supported ([Apple has deprecated other m
183
181
 
184
182
  ---
185
183
 
186
- Edit the `ios/YourProjectName/AppDelegate.mm` file:
184
+ Edit the `ios/YourProjectName/AppDelegate.m(m)` file:
187
185
 
188
186
  ```obj-c
189
187
  #import "AppDelegate.h"
@@ -287,24 +285,20 @@ dependencies {
287
285
  5. Finally edit your `android/app/src/main/java/com/yourprojectname/MainActivity.java` file:
288
286
 
289
287
  ```java
290
- import com.facebook.react.ReactActivity;
291
- import com.facebook.react.ReactActivityDelegate;
292
- import com.facebook.react.ReactRootView;
293
- import com.zoontek.rnbootsplash.RNBootSplash; // <- add this necessary import
288
+ //
289
+
290
+ // Add these required imports:
291
+ import android.os.Bundle;
292
+ import com.zoontek.rnbootsplash.RNBootSplash;
294
293
 
295
294
  public class MainActivity extends ReactActivity {
296
295
 
297
296
  // …
298
297
 
299
- public static class MainActivityDelegate extends ReactActivityDelegate {
300
-
301
- //
302
-
303
- @Override
304
- protected void loadApp(String appKey) {
305
- RNBootSplash.init(getPlainActivity()); // <- initialize the splash screen
306
- super.loadApp(appKey);
307
- }
298
+ @Override
299
+ protected void onCreate(Bundle savedInstanceState) {
300
+ RNBootSplash.init(this); // <- initialize the splash screen
301
+ super.onCreate(savedInstanceState); // or super.onCreate(null) with react-native-screens
308
302
  }
309
303
  }
310
304
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-bootsplash",
3
- "version": "4.3.0",
3
+ "version": "4.3.1",
4
4
  "license": "MIT",
5
5
  "description": "Display a bootsplash on your app starts. Hide it when you want.",
6
6
  "author": "Mathieu Acthernoene <zoontek@gmail.com>",