expo-splash-screen 0.29.12 → 0.29.14
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,18 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 0.29.14 — 2024-12-05
|
|
14
|
+
|
|
15
|
+
### 💡 Others
|
|
16
|
+
|
|
17
|
+
- Use `light` and `dark` colors on `iOS` instead of `any`. ([#33472](https://github.com/expo/expo/pull/33472) by [@alanjhughes](https://github.com/alanjhughes))
|
|
18
|
+
|
|
19
|
+
## 0.29.13 — 2024-11-22
|
|
20
|
+
|
|
21
|
+
### 🐛 Bug fixes
|
|
22
|
+
|
|
23
|
+
- Correctly handle `resizeMode` in config plugin. ([#33143](https://github.com/expo/expo/pull/33143) by [@alanjhughes](https://github.com/alanjhughes))
|
|
24
|
+
|
|
13
25
|
## 0.29.12 — 2024-11-20
|
|
14
26
|
|
|
15
27
|
### 🐛 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.14'
|
|
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.14'
|
|
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.14",
|
|
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",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"expo": "*"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "cc9b120d0f3c71f546db69e8adf4f0f3e9d5c14a"
|
|
46
46
|
}
|
|
@@ -5,23 +5,24 @@ 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
|
+
const resizeMode = props?.resizeMode || 'contain';
|
|
9
|
+
const { ios: iosProps, android: androidProps, ...otherProps } = props;
|
|
8
10
|
const android = {
|
|
9
|
-
...
|
|
10
|
-
...
|
|
11
|
-
resizeMode:
|
|
11
|
+
...otherProps,
|
|
12
|
+
...androidProps,
|
|
13
|
+
resizeMode: androidProps?.resizeMode || resizeMode,
|
|
12
14
|
dark: {
|
|
13
|
-
...
|
|
14
|
-
...
|
|
15
|
-
resizeMode: 'contain',
|
|
15
|
+
...otherProps?.dark,
|
|
16
|
+
...androidProps?.dark,
|
|
16
17
|
},
|
|
17
18
|
};
|
|
18
19
|
const ios = {
|
|
19
|
-
...
|
|
20
|
-
...
|
|
21
|
-
resizeMode: 'contain',
|
|
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.
|
|
@@ -11,6 +11,7 @@ type PluginConfig = {
|
|
|
11
11
|
imageWidth?: number;
|
|
12
12
|
enableFullScreenImage_legacy?: boolean;
|
|
13
13
|
image?: string;
|
|
14
|
+
resizeMode?: 'contain' | 'cover' | 'native';
|
|
14
15
|
dark?: {
|
|
15
16
|
image?: string;
|
|
16
17
|
backgroundColor?: string;
|
|
@@ -20,23 +21,26 @@ type PluginConfig = {
|
|
|
20
21
|
};
|
|
21
22
|
|
|
22
23
|
const withSplashScreen: ConfigPlugin<PluginConfig> = (config, props) => {
|
|
24
|
+
const resizeMode = props?.resizeMode || 'contain';
|
|
25
|
+
|
|
26
|
+
const { ios: iosProps, android: androidProps, ...otherProps } = props;
|
|
27
|
+
|
|
23
28
|
const android: AndroidSplashConfig = {
|
|
24
|
-
...
|
|
25
|
-
...
|
|
26
|
-
resizeMode:
|
|
29
|
+
...otherProps,
|
|
30
|
+
...androidProps,
|
|
31
|
+
resizeMode: androidProps?.resizeMode || resizeMode,
|
|
27
32
|
dark: {
|
|
28
|
-
...
|
|
29
|
-
...
|
|
30
|
-
resizeMode: 'contain',
|
|
33
|
+
...otherProps?.dark,
|
|
34
|
+
...androidProps?.dark,
|
|
31
35
|
},
|
|
32
36
|
};
|
|
33
37
|
const ios: IOSSplashConfig = {
|
|
34
|
-
...
|
|
35
|
-
...
|
|
36
|
-
resizeMode: 'contain',
|
|
38
|
+
...otherProps,
|
|
39
|
+
...iosProps,
|
|
40
|
+
resizeMode: iosProps?.resizeMode || (resizeMode === 'native' ? 'contain' : resizeMode),
|
|
37
41
|
dark: {
|
|
38
|
-
...
|
|
39
|
-
...
|
|
42
|
+
...otherProps?.dark,
|
|
43
|
+
...iosProps?.dark,
|
|
40
44
|
},
|
|
41
45
|
};
|
|
42
46
|
|