standardnotes / react-native-sodium-jsi

React Native Libsodium JSI Implementation
GNU Affero General Public License v3.0
17 stars 2 forks source link

react-native-sodium-jsi

Precompiled binaries of libsodium will be linked by default.

Optionally, you can choose to compile libsodium by yourself (run npm run rebuild in package directory). Source code will be downloaded and verified before compilation.

Supported Libsodium functions:

Source compilation

General prerequisites
MacOS prerequisites
Android prerequisites

Recompile and repackage

  1. yarn rebundle

Usage

Using hermes on Android is required.

  1. npm install react-native-sodium-jsi
  2. npx pod-install ios
  3. Run your app.

Example app

  1. yarn bootstrap
  2. yarn example
  3. yarn ios or yarn android