expo-splash-screen 0.27.6 → 0.28.1
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 +16 -2
- package/android/build.gradle +2 -2
- package/ios/EXSplashScreen/EXSplashScreenModule.m +8 -2
- package/ios/EXSplashScreen/EXSplashScreenService.m +0 -1
- package/ios/EXSplashScreen/EXSplashScreenViewController.m +1 -0
- package/ios/EXSplashScreen.podspec +4 -1
- package/package.json +4 -4
- package/tsconfig.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -10,11 +10,25 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
-
## 0.
|
|
13
|
+
## 0.28.1 — 2024-10-24
|
|
14
14
|
|
|
15
15
|
_This version does not introduce any user-facing changes._
|
|
16
16
|
|
|
17
|
-
## 0.
|
|
17
|
+
## 0.28.0 — 2024-10-22
|
|
18
|
+
|
|
19
|
+
### 🛠 Breaking changes
|
|
20
|
+
|
|
21
|
+
- Bumped iOS and tvOS deployment target to 15.1. ([#30840](https://github.com/expo/expo/pull/30840) by [@tsapeta](https://github.com/tsapeta))
|
|
22
|
+
|
|
23
|
+
### 🐛 Bug fixes
|
|
24
|
+
|
|
25
|
+
- Fixed `preventAutoHideAsync()` broken on iOS bridgeless mode. ([#28234](https://github.com/expo/expo/pull/28234) by [@kudo](https://github.com/kudo))
|
|
26
|
+
|
|
27
|
+
## 0.27.6 - 2024-09-23
|
|
28
|
+
|
|
29
|
+
_This version does not introduce any user-facing changes._
|
|
30
|
+
|
|
31
|
+
## 0.27.5 - 2024-06-06
|
|
18
32
|
|
|
19
33
|
_This version does not introduce any user-facing changes._
|
|
20
34
|
|
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.
|
|
4
|
+
version = '0.28.1'
|
|
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.
|
|
17
|
+
versionName '0.28.1'
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
#import <EXSplashScreen/EXSplashScreenModule.h>
|
|
4
4
|
#import <EXSplashScreen/EXSplashScreenService.h>
|
|
5
5
|
#import <React/RCTRootView.h>
|
|
6
|
+
#import <React/RCTSurfaceHostingView.h>
|
|
6
7
|
#import <ExpoModulesCore/EXAppLifecycleService.h>
|
|
7
8
|
#import <ExpoModulesCore/EXUtilities.h>
|
|
8
9
|
|
|
@@ -152,12 +153,12 @@ EX_EXPORT_METHOD_AS(preventAutoHideAsync,
|
|
|
152
153
|
|
|
153
154
|
for (UIWindow *window in allWindows) {
|
|
154
155
|
UIViewController *controller = window.rootViewController;
|
|
155
|
-
if ([controller.view
|
|
156
|
+
if ([self isReactRootView:controller.view]) {
|
|
156
157
|
return controller;
|
|
157
158
|
}
|
|
158
159
|
UIViewController *presentedController = controller.presentedViewController;
|
|
159
160
|
while (presentedController && ![presentedController isBeingDismissed]) {
|
|
160
|
-
if ([presentedController.view
|
|
161
|
+
if ([self isReactRootView:presentedController.view]) {
|
|
161
162
|
return presentedController;
|
|
162
163
|
}
|
|
163
164
|
controller = presentedController;
|
|
@@ -169,4 +170,9 @@ EX_EXPORT_METHOD_AS(preventAutoHideAsync,
|
|
|
169
170
|
return nil;
|
|
170
171
|
}
|
|
171
172
|
|
|
173
|
+
- (BOOL)isReactRootView:(UIView*)view
|
|
174
|
+
{
|
|
175
|
+
return [view isKindOfClass:RCTRootView.class] || [view isKindOfClass:RCTSurfaceHostingView.class];
|
|
176
|
+
}
|
|
177
|
+
|
|
172
178
|
@end
|
|
@@ -46,7 +46,6 @@ EX_REGISTER_SINGLETON_MODULE(SplashScreen);
|
|
|
46
46
|
failureCallback:^(NSString *message){ EXLogWarn(@"%@", message); }];
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
|
|
50
49
|
- (void)showSplashScreenFor:(UIViewController *)viewController
|
|
51
50
|
options:(EXSplashScreenOptions)options
|
|
52
51
|
splashScreenViewProvider:(id<EXSplashScreenViewProvider>)splashScreenViewProvider
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
[EXUtilities performSynchronouslyOnMainThread:^{
|
|
41
41
|
UIView *rootView = self.rootView;
|
|
42
42
|
self.splashScreenView.frame = rootView.bounds;
|
|
43
|
+
self.splashScreenView.layer.zPosition = MAXFLOAT;
|
|
43
44
|
[rootView addSubview:self.splashScreenView];
|
|
44
45
|
self.splashScreenShown = YES;
|
|
45
46
|
if (successCallback) {
|
|
@@ -10,7 +10,10 @@ Pod::Spec.new do |s|
|
|
|
10
10
|
s.license = package['license']
|
|
11
11
|
s.author = package['author']
|
|
12
12
|
s.homepage = package['homepage']
|
|
13
|
-
s.platforms = {
|
|
13
|
+
s.platforms = {
|
|
14
|
+
:ios => '15.1',
|
|
15
|
+
:tvos => '15.1'
|
|
16
|
+
}
|
|
14
17
|
s.source = { git: 'https://github.com/expo/expo.git' }
|
|
15
18
|
s.static_framework = true
|
|
16
19
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-splash-screen",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.28.1",
|
|
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,13 +34,13 @@
|
|
|
34
34
|
"license": "MIT",
|
|
35
35
|
"homepage": "https://docs.expo.dev/versions/latest/sdk/splash-screen/",
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@expo/prebuild-config": "
|
|
37
|
+
"@expo/prebuild-config": "8.0.2"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"expo-module-scripts": "^
|
|
40
|
+
"expo-module-scripts": "^4.0.0"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"expo": "*"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "0a07b965c4bef67e7718355a0dc770d524ad3cee"
|
|
46
46
|
}
|
package/tsconfig.json
CHANGED