Secure generatation of random bytes using native functions with react native
react-native-randomness
Secure generatation of random bytes using native functions in Kotlin and Objective-C.
Example
Example iOS application | Example Android application |
|
|
Check the source code here
Installation
npm install react-native-randomness
# link native dependencies
npx react-native link
Usage
import {random} from "react-native-randomness";
const result = await random(); // [68, 115, 41, 36, 85, 55, 167, 223, 122, 48, 124, 211, 162, 50, 7, 25]