ai / nanoid

A tiny (124 bytes), secure, URL-friendly, unique string ID generator for JavaScript

Home Page:https://zelark.github.io/nano-id-cc/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`expo-random` has been deprecated

silvestreh opened this issue · comments

Hi there! I just wanted to give you a quick heads up about expo-random being deprecated. It'll be removed in the next Expo SDK release.

I think you'll want to update index.native so that the import reads:

import * as Crypto from 'expo-crypto'

And a couple lines below that

export let random = Crypto.getRandomBytesAsync

Can you send a PR? Since I am not a RN developer.

@ai thanks for the quick reply. Here's the PR #415 :)