react-native-custom-splash 2.1.1 → 2.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-custom-splash",
3
- "version": "2.1.1",
3
+ "version": "2.1.2",
4
4
  "description": "A custom splash screen module for React Native with native iOS and Android support, fully compatible with Expo",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -6,6 +6,7 @@ const {
6
6
  AndroidConfig,
7
7
  IOSConfig,
8
8
  } = require('@expo/config-plugins');
9
+ const { withInfoPlist } = IOSConfig.Infoplist || {};
9
10
  const path = require('path');
10
11
  const fs = require('fs');
11
12
 
@@ -431,7 +432,7 @@ function createLaunchScreenStoryboard(hasImage, hasLogo, backgroundColor) {
431
432
  */
432
433
  const withSplashScreenIOS = (config, pluginConfig) => {
433
434
  // Step 1: Update Info.plist to use our LaunchScreen
434
- config = IOSConfig.InfoPlist.withInfoPlist(config, (config) => {
435
+ config = withInfoPlist(config, (config) => {
435
436
  // Set our LaunchScreen as the launch storyboard
436
437
  config.modResults.UILaunchStoryboardName = 'LaunchScreen';
437
438