Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 295
Simply Innovative Avatar asked Mar 13 '23 02:03

Simply Innovative


1 Answers

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

like image 103
Felipe Martim Avatar answered Mar 23 '23 08:03

Felipe Martim