Skip to content

Commit

Permalink
Implement getJavaScriptContextHolder for BridgelessCatalystInstance
Browse files Browse the repository at this point in the history
Summary:
Implement getJavaScriptContextHolder() for BridgelessCatalystInstance

Changelog:
[Android][Breaking] Implement getJavaScriptContextHolder() for Bridgeless Catalyst Instance

Differential Revision: D56046452
  • Loading branch information
arushikesarwani94 authored and facebook-github-bot committed Apr 12, 2024
1 parent 78d523d commit 1e2726e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ public class BridgelessCatalystInstance(private val reactHost: ReactHostImpl) :
}

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

override fun getRuntimeExecutor(): RuntimeExecutor {
Expand Down

0 comments on commit 1e2726e

Please sign in to comment.