Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jsc-android

Package Overview
Dependencies
Maintainers
2
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsc-android

Pre-build version of JavaScriptCore to be used by React Native apps

  • 250231.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created

What is jsc-android?

The jsc-android package provides an optimized version of the JavaScriptCore engine for Android. This allows developers to leverage the latest JavaScript features and improvements in performance within their React Native applications or any other Android project that requires an embedded JavaScript engine.

What are jsc-android's main functionalities?

Using modern JavaScript features in Android apps

This code demonstrates how to use jsc-android to run JavaScript code, utilizing modern JavaScript features, directly within an Android application. It creates a new JavaScript context and evaluates a simple script.

"import org.liquidplayer.javascript.JSContext;\n\npublic class MainActivity extends AppCompatActivity {\n    @Override\n    protected void onCreate(Bundle savedInstanceState) {\n        super.onCreate(savedInstanceState);\n        setContentView(R.layout.activity_main);\n\n        JSContext context = new JSContext();\n        context.evaluateScript(\"'Hello, World!'.toUpperCase();\");\n    }\n}"

Improving React Native performance

By including jsc-android in a React Native project's dependencies, developers can improve the performance of their applications. This is particularly beneficial for complex applications that require a lot of JavaScript execution.

"dependencies {\n    implementation 'org.webkit:android-jsc:r250230'\n}\n"

Other packages similar to jsc-android

Keywords

FAQs

Package last updated on 05 Feb 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc