This library makes it possible to write React Native JSI modules in Rust.
For an example, check out the example folder.
- Clone this repo
- Run
git submodule init - Run
git submodule update, this will ensure that all the vendor dependencies are cloned locally - Make sure you have Ninja installed locally, which is necessary for building Hermes. You can find instructions here. On macOS, you can install it with
brew install ninja - Install dependencies for the example app:
cd example && yarn install - Run the example app on android with
yarn android
NOTE: Make sure that you have not installed rust with homebrew on mac, use the
rustuptoolchain instead.
I wrote this code in winter 2022 as part of another project. A few months later, I have decided to release it to the world. However, I'm not planning to maintain it unless I encounter another project that requires it, so for now, the code is given to you as-is. Feel free to contribute PRs that would improve the API or stability of the library.
Right now, this library is quite unsafe.
Copyright Ibiyemi Abiodun. MIT License.