For now library is depending on react-native-quick-crypto, because for now it relies on randomBytes for salt generation. In future it will be replaced with native randomBytes implementation. So for now you need to install react-native-quick-crypto as well.
npm install react-native-quick-argon2
yarn add react-native-quick-argon2
# or https://github.com/antfu/ni
ni react-native-quick-argon2
For iOS also run pod install
in /ios
folder.
You must have Android NDK and CMake installed on android to build the library.
import simpleJsiModule from 'react-native-jsi-template';
simpleJsiModule.helloWorld(); // returns helloworld.
Run the example app for more.
JSI Workflows from react-native-mmkv
The initial work done by authors of the following libraries has helped a lot in writing the blog and keeping this repo updated.
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT