react-native-randomness

Secure generatation of random bytes using native functions in Kotlin and Objective-C.

Example

Example iOS application Example Android application
Screen Shot 2021-04-04 at 13 17 43 Screen Shot 2021-04-04 at 13 04 14

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]

GitHub

https://github.com/eugenehp/react-native-randomness