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:
crypto_aead_xchacha20poly1305_ietf_encryptcrypto_aead_xchacha20poly1305_ietf_decryptcrypto_pwhashcrypto_aead_xchacha20poly1305_ietf_keygenrandombytes_bufrandombytes_randomto_base64from_base64
- gpg (macports, homebrew)
- minisign (homebrew)
- libtool (macports, homebrew)
- autoconf (macports, homebrew)
- automake (macports, homebrew)
- Xcode (12 or newer)
- Android NDK
- CMake
- LLDB
yarn rebundle
Using hermes on Android is required.
npm install react-native-sodium-jsinpx pod-install ios- Run your app.
yarn bootstrapyarn exampleyarn iosoryarn android