expo-splash-screen 0.29.9 → 0.29.11

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.29.11 — 2024-11-15
14
+
15
+ _This version does not introduce any user-facing changes._
16
+
17
+ ## 0.29.10 — 2024-11-14
18
+
19
+ ### 💡 Others
20
+
21
+ - Bump minimum @expo/prebuild-config version.
22
+
13
23
  ## 0.29.9 — 2024-11-14
14
24
 
15
25
  _This version does not introduce any user-facing changes._
@@ -1,7 +1,7 @@
1
1
  apply plugin: 'com.android.library'
2
2
 
3
3
  group = 'host.exp.exponent'
4
- version = '0.29.9'
4
+ version = '0.29.11'
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.9'
17
+ versionName '0.29.11'
18
18
  }
19
19
  }
20
20
 
@@ -1,9 +1,11 @@
1
1
  package expo.modules.splashscreen
2
2
 
3
3
  import android.app.Activity
4
+ import android.os.Build
4
5
  import android.view.View
5
6
  import android.view.ViewTreeObserver.OnPreDrawListener
6
7
  import android.view.animation.AccelerateInterpolator
8
+ import android.window.SplashScreenView
7
9
  import androidx.core.splashscreen.SplashScreen
8
10
  import androidx.core.splashscreen.SplashScreen.Companion.installSplashScreen
9
11
  import com.facebook.react.bridge.ReactMarker
@@ -32,13 +34,19 @@ object SplashScreenManager {
32
34
  val duration = options.duration
33
35
 
34
36
  splashScreen.setOnExitAnimationListener { splashScreenViewProvider ->
35
- splashScreenViewProvider.view
37
+ val splashScreenView = splashScreenViewProvider.view
38
+ splashScreenView
36
39
  .animate()
37
40
  .setDuration(duration)
38
41
  .alpha(0.0f)
39
42
  .setInterpolator(AccelerateInterpolator())
40
43
  .withEndAction {
41
- splashScreenViewProvider.remove()
44
+ if (Build.VERSION.SDK_INT < Build.VERSION_CODES.S) {
45
+ splashScreenViewProvider.remove();
46
+ } else {
47
+ // Avoid calling applyThemesSystemBarAppearance
48
+ (splashScreenView as SplashScreenView).remove();
49
+ }
42
50
  }.start()
43
51
  }
44
52
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-splash-screen",
3
- "version": "0.29.9",
3
+ "version": "0.29.11",
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.15"
37
+ "@expo/prebuild-config": "^8.0.16"
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": "563c85837bc5055672846887f70f3daf5763b16d"
45
+ "gitHead": "dc2f6d254174599c74ebc2a20523d09b57a628fc"
46
46
  }