Skip to content

Unable to access React-Native's jsContext using bridge in v0.45.0-rc.0 #14041

@ayushnawani

Description

@ayushnawani

Description

I am trying to access react-native's jscontext using RCTBridge in my NativeModule.

In v0.44.0,
i am able to access it using

RCTJSCExecutor  *jscExecutor = [self.bridge valueForKey:@"_javaScriptExecutor"];
JSContext *reactJSContext = [jscExecutor jsContext];

But in v0.45.0-rc.0,
I guess, there is no "_javaScriptExecutor" due to new Bridge implementation.
And jsContext is also removed from RCTBridge's interface.

So, how do i access it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions