Skip to content

Commit ccc43b8

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

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

patches/react-native-bootsplash+6.3.10.patch

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,10 @@ index d553256..1221a83 100644
1919
+
2020
+ @JvmStatic
2121
+ fun hide(activity: Activity) {
22-
+ val reactContext: ReactApplicationContext? = (activity.application as ReactApplication)
23-
+ .reactNativeHost
24-
+ .reactInstanceManager
25-
+ .currentReactContext as? ReactApplicationContext
26-
+
27-
+ if (reactContext != null) {
28-
+ RNBootSplashModuleImpl.hideAndClearPromiseQueue(reactContext,false)
22+
+ (activity.application as? ReactApplication)?.let { application ->
23+
+ (application.reactHost?.currentReactContext as? ReactApplicationContext)?.let {
24+
+ RNBootSplashModuleImpl.hideAndClearPromiseQueue(it, false)
25+
+ }
2926
+ }
3027
+ }
3128
}

0 commit comments

Comments
 (0)