ReactNative-ready tweetnacl.js : easy-to-use high-speed software library for network communication, encryption, decryption, signatures, etc
npm install react-native-tweetnaclPort of TweetNaCl / NaCl
to JavaScript for modern browsers and Node.js. Public domain.

Check : https://github.com/tarun1475/React-native-tweetnacl-demo/blob/master/App.js/
1. Install
``sh`
npm i --save react-native-tweetnacl
react-native link react-native-randombytesinstall latest rn-nodeify
npm i --save-dev mvayngrib/rn-nodeifyinstall node core shims and recursively hack package.json files
in ./node_modules to add/update the "browser"/"react-native" field with relevant mappings
./node_modules/.bin/rn-nodeify --hack --install
2. rn-nodeify will create a shim.js in the project root directory
`jsimport
// index.ios.js or index.android.js or index.js
// make sure you use and not require!``
import "./shim.js";
// ...the rest of your code
Checkout : https://github.com/dchest/tweetnacl-js/