expo-splash-screen 0.16.1 → 0.16.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/CHANGELOG.md CHANGED
@@ -10,6 +10,12 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 0.16.2 — 2022-08-22
14
+
15
+ ### 🐛 Bug fixes
16
+
17
+ - Fixed `'SplashScreen.show' has already been called for given view controller.` warning being displayed when using `expo-dev-client` on iOS. ([#18682](https://github.com/expo/expo/pull/18682) by [@lukmccall](https://github.com/lukmccall))
18
+
13
19
  ## 0.16.1 — 2022-07-16
14
20
 
15
21
  ### 🐛 Bug fixes
@@ -3,7 +3,7 @@ apply plugin: 'kotlin-android'
3
3
  apply plugin: 'maven-publish'
4
4
 
5
5
  group = 'host.exp.exponent'
6
- version = '0.16.1'
6
+ version = '0.16.2'
7
7
 
8
8
  buildscript {
9
9
  def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
@@ -74,7 +74,7 @@ android {
74
74
  minSdkVersion safeExtGet('minSdkVersion', 21)
75
75
  targetSdkVersion safeExtGet("targetSdkVersion", 31)
76
76
  versionCode 17
77
- versionName '0.16.1'
77
+ versionName '0.16.2'
78
78
  }
79
79
  lintOptions {
80
80
  abortOnError false
@@ -188,7 +188,10 @@ EX_REGISTER_SINGLETON_MODULE(SplashScreen);
188
188
  {
189
189
  if (object == UIApplication.sharedApplication.keyWindow && [keyPath isEqualToString:kRootViewController]) {
190
190
  UIViewController *newRootViewController = change[@"new"];
191
- if (newRootViewController != nil) {
191
+ // For unknown reasons, this function may be sometimes called twice with the same changes.
192
+ // What leads to warnings like this one: `'SplashScreen.show' has already been called for given view controller`.
193
+ // To prevent this weird behaviour, we check if the value was really changed.
194
+ if (newRootViewController != nil && newRootViewController != self.observingRootViewController) {
192
195
  [self removeRootViewControllerListener];
193
196
  [self showSplashScreenFor:newRootViewController options:EXSplashScreenDefault];
194
197
  [self addRootViewControllerListener];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-splash-screen",
3
- "version": "0.16.1",
3
+ "version": "0.16.2",
4
4
  "description": "Provides a module to allow keeping the native Splash Screen visible until you choose to hide it.",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -46,5 +46,5 @@
46
46
  "peerDependencies": {
47
47
  "expo": "*"
48
48
  },
49
- "gitHead": "c6678c65b68e45062d49a2deea8e822f69388278"
49
+ "gitHead": "f2136cdc98ea6595298d01900861d649bcc6cae1"
50
50
  }