Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

expo-random has been deprecated #414

Closed
silvestreh opened this issue Mar 9, 2023 · 2 comments · Fixed by #415
Closed

expo-random has been deprecated #414

silvestreh opened this issue Mar 9, 2023 · 2 comments · Fixed by #415

Comments

@silvestreh
Copy link
Contributor

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
@ai
Copy link
Owner

ai commented Mar 9, 2023

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

@silvestreh
Copy link
Contributor Author

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

@ai ai closed this as completed Feb 28, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants