react-native-tweetnacl

1.0.5 • Public • Published

react-native-tweetnacl

Port of TweetNaCl / NaCl to JavaScript for modern browsers and Node.js. Public domain.

Build Status

ReactNative Example Project Code

Check : https://github.com/tarun1475/React-native-tweetnacl-demo/blob/master/App.js/

How do I get set up?

  1. Install
npm i --save react-native-tweetnacl
react-native link react-native-randombytes
# install latest rn-nodeify 
npm i --save-dev mvayngrib/rn-nodeify
# install 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
  1. rn-nodeify will create a shim.js in the project root directory
// index.ios.js or index.android.js or index.js
// make sure you use `import` and not require!
import "./shim.js";
// ...the rest of your code

TweetNaCl docs

Checkout : https://github.com/dchest/tweetnacl-js/

/react-native-tweetnacl/

    Package Sidebar

    Install

    npm i react-native-tweetnacl

    Weekly Downloads

    41

    Version

    1.0.5

    License

    ISC

    Unpacked Size

    42.2 kB

    Total Files

    5

    Last publish

    Collaborators

    • tarra9779725351