Skip to content

Commit 26854de

Browse files
arushikesarwani94huntie
authored andcommitted
Implement getJavaScriptContextHolder for BridgelessCatalystInstance (#44054)
Summary: Pull Request resolved: #44054 Implement `getJavaScriptContextHolder()` for BridgelessCatalystInstance Changelog: [Android][Breaking] Implement `getJavaScriptContextHolder()` for Bridgeless Catalyst Instance Reviewed By: christophpurrer Differential Revision: D56046452 fbshipit-source-id: b7fed1da3064608d8ef5fa84f4e53a4f7a84cba7
1 parent e7131fa commit 26854de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/runtime/BridgelessCatalystInstance.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,8 @@ public class BridgelessCatalystInstance(private val reactHost: ReactHostImpl) :
145145
}
146146

147147
@Deprecated(message = "This API is unsupported in the New Architecture.")
148-
override fun getJavaScriptContextHolder(): JavaScriptContextHolder {
149-
throw UnsupportedOperationException("Unimplemented method 'getJavaScriptContextHolder'")
148+
override fun getJavaScriptContextHolder(): JavaScriptContextHolder? {
149+
return reactHost.getJavaScriptContextHolder()
150150
}
151151

152152
override fun getRuntimeExecutor(): RuntimeExecutor? {

0 commit comments

Comments
 (0)