🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

react-native-bare-kit

Package Overview
Dependencies
Maintainers
2
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-bare-kit

Bare Kit for React Native

0.6.15
latest
Source
npm
Version published
Weekly downloads
430
-4.23%
Maintainers
2
Weekly downloads
 
Created
Source

react-native-bare-kit

https://github.com/holepunchto/bare-kit for React Native.

npm i react-native-bare-kit

Usage

[!IMPORTANT] You may experience problems using the library on an emulated Android device under QEMU due to https://github.com/holepunchto/libjs/issues/4. If you encounter crashes, try running your app on a real Android device instead.

import { Worklet } from 'react-native-bare-kit'

const worklet = new Worklet()

const source = `\
const { IPC } = BareKit

IPC.setEncoding('utf8')
IPC.on('data', (data) => console.log(data))
IPC.write('Hello from Bare!')
`

worklet.start('/app.js', source)

const { IPC } = worklet

IPC.setEncoding('utf8')
IPC.on('data', (data) => console.log(data))
IPC.write('Hello from React Native!')

Refer to https://github.com/holepunchto/bare-expo for an example of using the library in an Expo application.

Logging

The console.* logging APIs used in the worklet write to the system log using https://github.com/holepunchto/liblog with the bare identifier. Refer to https://github.com/holepunchto/liblog#consuming-logs for instructions on how to consume the logs.

License

Apache-2.0

FAQs

Package last updated on 08 May 2025

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