expo-splash-screen 0.20.3 → 0.20.5

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,16 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 0.20.5 — 2023-07-29
14
+
15
+ ### 🐛 Bug fixes
16
+
17
+ - [Android] Fixed splash screen is missing when using the `getDelayLoadAppHandler()` from expo-updates. ([#23747](https://github.com/expo/expo/pull/23747) by [@kudo](https://github.com/kudo))
18
+
19
+ ## 0.20.4 — 2023-07-05
20
+
21
+ _This version does not introduce any user-facing changes._
22
+
13
23
  ## 0.20.3 — 2023-07-02
14
24
 
15
25
  _This version does not introduce any user-facing changes._
@@ -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.20.3'
6
+ version = '0.20.5'
7
7
 
8
8
  buildscript {
9
9
  def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
@@ -67,7 +67,7 @@ android {
67
67
  minSdkVersion safeExtGet('minSdkVersion', 21)
68
68
  targetSdkVersion safeExtGet("targetSdkVersion", 33)
69
69
  versionCode 17
70
- versionName '0.20.3'
70
+ versionName '0.20.5'
71
71
  }
72
72
  lintOptions {
73
73
  abortOnError false
@@ -2,8 +2,6 @@ package expo.modules.splashscreen
2
2
 
3
3
  import android.app.Activity
4
4
  import android.content.Context
5
- import android.os.Bundle
6
- import android.os.Handler
7
5
  import com.facebook.react.ReactRootView
8
6
  import expo.modules.core.interfaces.ReactActivityLifecycleListener
9
7
  import expo.modules.splashscreen.singletons.SplashScreen
@@ -15,19 +13,13 @@ import expo.modules.splashscreen.SplashScreenImageResizeMode
15
13
  /* ktlint-enable no-unused-imports */
16
14
 
17
15
  class SplashScreenReactActivityLifecycleListener(activityContext: Context) : ReactActivityLifecycleListener {
18
- override fun onCreate(activity: Activity, savedInstanceState: Bundle?) {
19
- // To support backward compatible or SplashScreenImageResizeMode customization
20
- // that calling `SplashScreen.show()` in MainActivity,
21
- // we postpone the in-module call to the end of main loop.
22
- // If MainActivity.onCreate has `SplashScreen.show()`, it will override the call here.
23
- Handler(activity.mainLooper).post {
24
- SplashScreen.show(
25
- activity,
26
- getResizeMode(activity),
27
- ReactRootView::class.java,
28
- getStatusBarTranslucent(activity)
29
- )
30
- }
16
+ override fun onContentChanged(activity: Activity) {
17
+ SplashScreen.show(
18
+ activity,
19
+ getResizeMode(activity),
20
+ ReactRootView::class.java,
21
+ getStatusBarTranslucent(activity)
22
+ )
31
23
  }
32
24
 
33
25
  private fun getResizeMode(context: Context): SplashScreenImageResizeMode =
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-splash-screen",
3
- "version": "0.20.3",
3
+ "version": "0.20.5",
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",
@@ -37,7 +37,7 @@
37
37
  "preset": "expo-module-scripts"
38
38
  },
39
39
  "dependencies": {
40
- "@expo/prebuild-config": "6.2.5"
40
+ "@expo/prebuild-config": "6.2.6"
41
41
  },
42
42
  "devDependencies": {
43
43
  "expo-module-scripts": "^3.0.0"
@@ -45,5 +45,5 @@
45
45
  "peerDependencies": {
46
46
  "expo": "*"
47
47
  },
48
- "gitHead": "6c5f5daa406fe2feda0f4b90690c2b4f24ceba8d"
48
+ "gitHead": "0d774d352ca6d11f83a3223199c8e5f6ba4c8e09"
49
49
  }