4

Secure generatation of random bytes using native functions with react native

 3 years ago
source link: https://reactnativeexample.com/secure-generatation-of-random-bytes-using-native-functions-with-react-native/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Secure

Secure generatation of random bytes using native functions with react native

Apr 06, 2021 1 min read

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 43Screen 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

Previous Post

React Native horizontal scroll view component as seen on Clubhouse tags

Next Post

React Native Clipboard API with Animated toast message component

Subscribe to React Native Example for Android and iOS

Get the latest posts delivered right to your inbox


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK