Skip to content

Commit

Permalink
Implement getJavaScriptContextHolder for BridgelessCatalystInstance (#…
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
arushikesarwani94 authored and facebook-github-bot committed Apr 12, 2024
1 parent 6a5aaad commit b72f5e9
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 b72f5e9

Please sign in to comment.