expo-splash-screen 0.29.14 → 0.29.16
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/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,14 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 0.29.16 — 2024-12-05
|
|
14
|
+
|
|
15
|
+
_This version does not introduce any user-facing changes._
|
|
16
|
+
|
|
17
|
+
## 0.29.15 — 2024-12-05
|
|
18
|
+
|
|
19
|
+
_This version does not introduce any user-facing changes._
|
|
20
|
+
|
|
13
21
|
## 0.29.14 — 2024-12-05
|
|
14
22
|
|
|
15
23
|
### 💡 Others
|
package/android/build.gradle
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
apply plugin: 'com.android.library'
|
|
2
2
|
|
|
3
3
|
group = 'host.exp.exponent'
|
|
4
|
-
version = '0.29.
|
|
4
|
+
version = '0.29.16'
|
|
5
5
|
|
|
6
6
|
def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
|
|
7
7
|
apply from: expoModulesCorePlugin
|
|
@@ -14,7 +14,7 @@ android {
|
|
|
14
14
|
namespace "expo.modules.splashscreen"
|
|
15
15
|
defaultConfig {
|
|
16
16
|
versionCode 17
|
|
17
|
-
versionName '0.29.
|
|
17
|
+
versionName '0.29.16'
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-splash-screen",
|
|
3
|
-
"version": "0.29.
|
|
3
|
+
"version": "0.29.16",
|
|
4
4
|
"description": "Provides a module to allow keeping the native Splash Screen visible until you choose to hide it.",
|
|
5
5
|
"main": "build",
|
|
6
6
|
"types": "build",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"license": "MIT",
|
|
35
35
|
"homepage": "https://docs.expo.dev/versions/latest/sdk/splash-screen/",
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@expo/prebuild-config": "^8.0.
|
|
37
|
+
"@expo/prebuild-config": "^8.0.22"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"expo-module-scripts": "^4.0.0"
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"expo": "*"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "c39b154e8af45474e297f6a37be280befcd1259e"
|
|
46
46
|
}
|
|
@@ -5,6 +5,11 @@ const withIosSplashScreen_1 = require("@expo/prebuild-config/build/plugins/unver
|
|
|
5
5
|
const config_plugins_1 = require("expo/config-plugins");
|
|
6
6
|
const pkg = require('expo-splash-screen/package.json');
|
|
7
7
|
const withSplashScreen = (config, props) => {
|
|
8
|
+
if (!props) {
|
|
9
|
+
config = (0, withAndroidSplashScreen_1.withAndroidSplashScreen)(config, null);
|
|
10
|
+
config = (0, withIosSplashScreen_1.withIosSplashScreen)(config, null);
|
|
11
|
+
return config;
|
|
12
|
+
}
|
|
8
13
|
const resizeMode = props?.resizeMode || 'contain';
|
|
9
14
|
const { ios: iosProps, android: androidProps, ...otherProps } = props;
|
|
10
15
|
const android = {
|
|
@@ -27,7 +32,7 @@ const withSplashScreen = (config, props) => {
|
|
|
27
32
|
};
|
|
28
33
|
// Need to pass null here if we don't receive any props. This means that the plugin has not been used.
|
|
29
34
|
// This only happens on Android. On iOS, if you don't use the plugin, this function won't be called.
|
|
30
|
-
config = (0, withAndroidSplashScreen_1.withAndroidSplashScreen)(config,
|
|
35
|
+
config = (0, withAndroidSplashScreen_1.withAndroidSplashScreen)(config, android);
|
|
31
36
|
config = (0, withIosSplashScreen_1.withIosSplashScreen)(config, ios);
|
|
32
37
|
return config;
|
|
33
38
|
};
|
|
@@ -20,7 +20,13 @@ type PluginConfig = {
|
|
|
20
20
|
ios?: IOSSplashConfig;
|
|
21
21
|
};
|
|
22
22
|
|
|
23
|
-
const withSplashScreen: ConfigPlugin<PluginConfig> = (config, props) => {
|
|
23
|
+
const withSplashScreen: ConfigPlugin<PluginConfig | null> = (config, props) => {
|
|
24
|
+
if (!props) {
|
|
25
|
+
config = withAndroidSplashScreen(config, null);
|
|
26
|
+
config = withIosSplashScreen(config, null);
|
|
27
|
+
return config;
|
|
28
|
+
}
|
|
29
|
+
|
|
24
30
|
const resizeMode = props?.resizeMode || 'contain';
|
|
25
31
|
|
|
26
32
|
const { ios: iosProps, android: androidProps, ...otherProps } = props;
|
|
@@ -46,7 +52,7 @@ const withSplashScreen: ConfigPlugin<PluginConfig> = (config, props) => {
|
|
|
46
52
|
|
|
47
53
|
// Need to pass null here if we don't receive any props. This means that the plugin has not been used.
|
|
48
54
|
// This only happens on Android. On iOS, if you don't use the plugin, this function won't be called.
|
|
49
|
-
config = withAndroidSplashScreen(config,
|
|
55
|
+
config = withAndroidSplashScreen(config, android);
|
|
50
56
|
config = withIosSplashScreen(config, ios);
|
|
51
57
|
return config;
|
|
52
58
|
};
|