react-native-bootsplash 4.2.4 → 4.3.2

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.
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"
@@ -239,7 +237,7 @@ dependencies {
239
237
  // …
240
238
 
241
239
  implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0"
242
- implementation "androidx.core:core-splashscreen:1.0.0-rc01" // Add this line
240
+ implementation "androidx.core:core-splashscreen:1.0.0" // Add this line
243
241
 
244
242
  // …
245
243
  ```
@@ -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
  ```
@@ -388,7 +382,6 @@ function App() {
388
382
  }
389
383
  ```
390
384
 
391
-
392
385
  ## With react-native-bars
393
386
 
394
387
  In order to keep fully transparent status and navigation bars on Android once the splash screen is hidden (and control them), this library play nicely with [react-native-bars](https://github.com/zoontek/react-native-bars). Check the [README](https://github.com/zoontek/react-native-bars/blob/main/README.md#with-react-native-bootsplash) for more informations.
@@ -419,5 +412,4 @@ After that, we need to add the setup file in the jest config. You can add it und
419
412
  ## 🕵️‍♂️ Comparison with [react-native-splash-screen](https://github.com/crazycodeboy/react-native-splash-screen)
420
413
 
421
414
  - If `react-native-splash-screen` encourages you to display an image over your application, `react-native-bootsplash` way-to-go is to design your launch screen using platforms tools.
422
- - It should not prevent you from seeing red screen errors.
423
415
  - Hiding the launch screen is configurable: fade it out or hide it without any animation.
@@ -49,5 +49,5 @@ repositories {
49
49
  dependencies {
50
50
  //noinspection GradleDynamicVersion
51
51
  implementation "com.facebook.react:react-native:+" // From node_modules
52
- implementation "androidx.core:core-splashscreen:${safeExtGet("androidXSplashScreenVersion", "1.0.0-rc01")}"
52
+ implementation "androidx.core:core-splashscreen:${safeExtGet("androidXSplashScreenVersion", "1.0.0")}"
53
53
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-bootsplash",
3
- "version": "4.2.4",
3
+ "version": "4.3.2",
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>",
@@ -37,7 +37,7 @@
37
37
  ],
38
38
  "scripts": {
39
39
  "format": "prettier '**/*' -u -w",
40
- "postinstall": "git config --local core.hooksPath .hooks",
40
+ "setup-hooks": "git config --local core.hooksPath .hooks",
41
41
  "prepack": "bob build"
42
42
  },
43
43
  "react-native-builder-bob": {
@@ -71,12 +71,12 @@
71
71
  },
72
72
  "devDependencies": {
73
73
  "@types/fs-extra": "^9.0.13",
74
- "@types/react-native": "^0.69.3",
74
+ "@types/react-native": "^0.69.5",
75
75
  "lint-staged": "^13.0.3",
76
76
  "prettier": "^2.7.1",
77
- "prettier-plugin-organize-imports": "^3.0.0",
77
+ "prettier-plugin-organize-imports": "^3.0.3",
78
78
  "react": "^18.0.0",
79
- "react-native": "^0.69.2",
79
+ "react-native": "^0.69.4",
80
80
  "react-native-builder-bob": "^0.18.3",
81
81
  "rescript": "^9.1.4",
82
82
  "typescript": "^4.7.4"