react-native-random-bytes
Getting started
$ npm install react-native-random-bytes --save
Mostly automatic installation
$ react-native link react-native-random-bytes
Manual installation
iOS
- In XCode, in the project navigator, right click
Libraries
➜ Add Files to [your project's name]
- Go to
node_modules
➜ react-native-random-bytes
and add RNRandomBytes.xcodeproj
- In XCode, in the project navigator, select your project. Add
libRNRandomBytes.a
to your project's Build Phases
➜ Link Binary With Libraries
- Run your project (
Cmd+R
)<
Usage
import RNRandomBytes from 'react-native-random-bytes';
RNRandomBytes;