0.6.0 • Published 3 months ago

react-native-bare-kit v0.6.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
3 months ago

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!')
`

await 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

0.4.8

4 months ago

0.3.0

7 months ago

0.5.4

3 months ago

0.5.3

3 months ago

0.5.6

3 months ago

0.5.5

3 months ago

0.5.0

3 months ago

0.3.2

6 months ago

0.3.1

6 months ago

0.5.2

3 months ago

0.5.1

3 months ago

0.4.5

5 months ago

0.4.4

5 months ago

0.4.7

4 months ago

0.2.9

8 months ago

0.4.6

5 months ago

0.4.1

6 months ago

0.4.0

6 months ago

0.4.3

6 months ago

0.6.0

3 months ago

0.4.2

6 months ago

0.2.8

8 months ago

0.2.6

8 months ago

0.2.5

8 months ago

0.2.3

8 months ago

0.2.2

8 months ago

0.2.1

8 months ago

0.2.0

8 months ago

0.1.4

8 months ago

0.1.3

8 months ago

0.1.2

8 months ago

0.1.1

8 months ago

0.1.0

8 months ago

0.0.14

8 months ago

0.0.13

8 months ago

0.0.12

9 months ago

0.0.11

9 months ago

0.0.10

9 months ago

0.0.9

9 months ago

0.0.8

9 months ago

0.0.7

9 months ago

0.0.6

9 months ago

0.0.5

9 months ago

0.0.4

9 months ago

0.0.3

9 months ago

0.0.2

9 months ago

0.0.1

9 months ago

0.0.0

9 months ago