Reputation: 568
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
Reputation: 1161
Perhaps you should take a look at this:
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