Simply Innovative
Simply Innovative

Reputation: 568

How to use JavaScriptCore in React Native android apps

We are building a React Native application on Android. We have a requirement of creating a separate JSC virtual machine instance in a thread. We do not want to use same JSC context which is used by React Native.

We have searched a lot on web and also tried to figure out how React Native is using JSC, but we are not able to find the same.

It will be very helpful if anyone can suggest us directions for the same.

Upvotes: 6

Views: 4332

Answers (1)

Felipe Martim
Felipe Martim

Reputation: 1161

Perhaps you should take a look at this:

ericwlange/AndroidJSCore

or dive deep into React Native's Android source code.

https://github.com/facebook/react-native/blob/master/ReactAndroid/src/main/jni/react/JSCExecutor.cpp

Upvotes: 7

Related Questions