Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use V8 instead of JavascriptCore for react-native

It's possible to use by default V8 instead of JavascriptCore when the app is not in debug mode?

I found some issues in JavascriptCore and not in V8 and is annoying switching 😓

Thanks.

like image 365
gusgard Avatar asked Jun 24 '17 10:06

gusgard


People also ask

Does React Native use V8 engine?

react-native-v8 depends on a V8 shared library built from v8-android-buildscripts. v8-android-jit is the recommended V8 variant. This is a full featured V8 with both JIT and Intl. We provide other V8 variants to fulfill your needs.

What engine does React Native use?

React Native uses JavaScriptCore (JavaScript engine in Safari) on Android/ iOS simulators and devices.

Does React Native use chromium?

It is based on chromium. IOS WKWebview — An object that displays interactive web content, such as for an in-app browser. It was introduced in IOS 8 and is the new standard WebView (it is the default for IOS when using react-native-webview).


1 Answers

You could do it by implementing the JSCExecutor using V8 API.

Also, you may consider Chakra as an option. https://github.com/Microsoft/react-native-windows has it integrated.

like image 112
Sergey Dryganets Avatar answered Sep 30 '22 10:09

Sergey Dryganets