expo-splash-screen 0.29.13 → 0.29.15
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 +10 -0
- package/android/build.gradle +2 -2
- package/package.json +3 -3
- package/plugin/build/withSplashScreen.js +11 -10
- package/plugin/src/withSplashScreen.ts +13 -10
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,16 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 0.29.15 — 2024-12-05
|
|
14
|
+
|
|
15
|
+
_This version does not introduce any user-facing changes._
|
|
16
|
+
|
|
17
|
+
## 0.29.14 — 2024-12-05
|
|
18
|
+
|
|
19
|
+
### 💡 Others
|
|
20
|
+
|
|
21
|
+
- Use `light` and `dark` colors on `iOS` instead of `any`. ([#33472](https://github.com/expo/expo/pull/33472) by [@alanjhughes](https://github.com/alanjhughes))
|
|
22
|
+
|
|
13
23
|
## 0.29.13 — 2024-11-22
|
|
14
24
|
|
|
15
25
|
### 🐛 Bug fixes
|
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.15'
|
|
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.15'
|
|
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.15",
|
|
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": "6a08258ad412dd883fde65c89f157e74671d789f"
|
|
46
46
|
}
|
|
@@ -6,22 +6,23 @@ 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
8
|
const resizeMode = props?.resizeMode || 'contain';
|
|
9
|
+
const { ios: iosProps, android: androidProps, ...otherProps } = props;
|
|
9
10
|
const android = {
|
|
10
|
-
...
|
|
11
|
-
...
|
|
12
|
-
resizeMode,
|
|
11
|
+
...otherProps,
|
|
12
|
+
...androidProps,
|
|
13
|
+
resizeMode: androidProps?.resizeMode || resizeMode,
|
|
13
14
|
dark: {
|
|
14
|
-
...
|
|
15
|
-
...
|
|
15
|
+
...otherProps?.dark,
|
|
16
|
+
...androidProps?.dark,
|
|
16
17
|
},
|
|
17
18
|
};
|
|
18
19
|
const ios = {
|
|
19
|
-
...
|
|
20
|
-
...
|
|
21
|
-
resizeMode: resizeMode === 'native' ? 'contain' : resizeMode,
|
|
20
|
+
...otherProps,
|
|
21
|
+
...iosProps,
|
|
22
|
+
resizeMode: iosProps?.resizeMode || (resizeMode === 'native' ? 'contain' : resizeMode),
|
|
22
23
|
dark: {
|
|
23
|
-
...
|
|
24
|
-
...
|
|
24
|
+
...otherProps?.dark,
|
|
25
|
+
...iosProps?.dark,
|
|
25
26
|
},
|
|
26
27
|
};
|
|
27
28
|
// Need to pass null here if we don't receive any props. This means that the plugin has not been used.
|
|
@@ -22,22 +22,25 @@ type PluginConfig = {
|
|
|
22
22
|
|
|
23
23
|
const withSplashScreen: ConfigPlugin<PluginConfig> = (config, props) => {
|
|
24
24
|
const resizeMode = props?.resizeMode || 'contain';
|
|
25
|
+
|
|
26
|
+
const { ios: iosProps, android: androidProps, ...otherProps } = props;
|
|
27
|
+
|
|
25
28
|
const android: AndroidSplashConfig = {
|
|
26
|
-
...
|
|
27
|
-
...
|
|
28
|
-
resizeMode,
|
|
29
|
+
...otherProps,
|
|
30
|
+
...androidProps,
|
|
31
|
+
resizeMode: androidProps?.resizeMode || resizeMode,
|
|
29
32
|
dark: {
|
|
30
|
-
...
|
|
31
|
-
...
|
|
33
|
+
...otherProps?.dark,
|
|
34
|
+
...androidProps?.dark,
|
|
32
35
|
},
|
|
33
36
|
};
|
|
34
37
|
const ios: IOSSplashConfig = {
|
|
35
|
-
...
|
|
36
|
-
...
|
|
37
|
-
resizeMode: resizeMode === 'native' ? 'contain' : resizeMode,
|
|
38
|
+
...otherProps,
|
|
39
|
+
...iosProps,
|
|
40
|
+
resizeMode: iosProps?.resizeMode || (resizeMode === 'native' ? 'contain' : resizeMode),
|
|
38
41
|
dark: {
|
|
39
|
-
...
|
|
40
|
-
...
|
|
42
|
+
...otherProps?.dark,
|
|
43
|
+
...iosProps?.dark,
|
|
41
44
|
},
|
|
42
45
|
};
|
|
43
46
|
|