0.1.8 • Published 5 years ago
rn-libsodium v0.1.8
react-native-sodium
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.
Source compilation
General prerequisites
- gpg (macports, homebrew)
- minisign (homebrew)
MacOS prerequisites
- libtool (macports, homebrew)
- autoconf (macports, homebrew)
- automake (macports, homebrew)
- Xcode (12 or newer)
Android prerequisites
- Android NDK
- CMake
- LLDB
Recompile and repackage
yarn rebundle
Usage
npm install react-native-sodiumnpx pod-install ios- Run your app.
Example app
yarn bootstrapyarn exampleyarn iosoryarn android
Credits
This repo is based on react-native-sodium by @lyubo.