Skip to content

Commit d1eaee4

Browse files
Update react-native-bootsplash+6.3.10.patch
1 parent ccc43b8 commit d1eaee4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

patches/react-native-bootsplash+6.3.10.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
diff --git a/node_modules/react-native-bootsplash/android/src/main/java/com/zoontek/rnbootsplash/RNBootSplash.kt b/node_modules/react-native-bootsplash/android/src/main/java/com/zoontek/rnbootsplash/RNBootSplash.kt
2-
index d553256..1221a83 100644
2+
index d553256..f538e42 100644
33
--- a/node_modules/react-native-bootsplash/android/src/main/java/com/zoontek/rnbootsplash/RNBootSplash.kt
44
+++ b/node_modules/react-native-bootsplash/android/src/main/java/com/zoontek/rnbootsplash/RNBootSplash.kt
55
@@ -1,7 +1,8 @@
@@ -12,15 +12,15 @@ index d553256..1221a83 100644
1212
import androidx.annotation.StyleRes
1313

1414
object RNBootSplash {
15-
@@ -10,4 +11,16 @@ object RNBootSplash {
15+
@@ -10,4 +11,13 @@ object RNBootSplash {
1616
fun init(activity: Activity, @StyleRes themeResId: Int) {
1717
RNBootSplashModuleImpl.init(activity, themeResId)
1818
}
1919
+
2020
+ @JvmStatic
2121
+ fun hide(activity: Activity) {
2222
+ (activity.application as? ReactApplication)?.let { application ->
23-
+ (application.reactHost?.currentReactContext as? ReactApplicationContext)?.let {
23+
+ (application.reactHost?.currentReactContext as? ReactApplicationContext)?.let {
2424
+ RNBootSplashModuleImpl.hideAndClearPromiseQueue(it, false)
2525
+ }
2626
+ }

0 commit comments

Comments
 (0)