Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

ReferenceError Can't find variable crypto (Build Release IOS) #810

Closed
pqminh opened this issue Aug 31, 2018 · 6 comments
Closed

ReferenceError Can't find variable crypto (Build Release IOS) #810

pqminh opened this issue Aug 31, 2018 · 6 comments

Comments

@pqminh
Copy link

pqminh commented Aug 31, 2018

Version

  • react-native-image-crop-picker v0.21.1
    "react": "16.0.0-alpha.12",
    "react-native": "^0.47.2",

Platform

  • iOS

Expected behaviour

Multi Picker image from library.

Steps to reproduce

const options = {
width: 300,
height: 400,
multiple: true,
maxFiles: 10,
mediaType: 'any',
};
ImageCropPicker.openPicker(options).then(response => {}).catch(err => console.log(err))
Catch error: ReferenceError Can't find variable crypto

@pqminh pqminh changed the title ReferenceError Can't find variable crypto ReferenceError Can't find variable crypto (Build Release IOS) Aug 31, 2018
@pqminh pqminh closed this as completed Aug 31, 2018
@pqminh
Copy link
Author

pqminh commented Aug 31, 2018

My bad.

@jamesnyika
Copy link

My bad.

Aw man.. at least say what you did wrong... no one learns if you do not tell us your mistake

@RazaShehryar
Copy link

What was the actual error? @pqminh

@bnmounir
Copy link

expo/expo#7507

@Doenja
Copy link

Doenja commented Dec 7, 2020

I had the same issue and it turned out I didn't read the nano-id docs thoroughly. You need to install the react-native-get-random-values package and import it before you import nanoid. See the documentation for the exact steps:

https://www.npmjs.com/package/nanoid#react-native

@pqminh
Copy link
Author

pqminh commented Apr 6, 2021

My bad.

Aw man.. at least say what you did wrong... no one learns if you do not tell us your mistake

Ya sorry but I don't remember this error. Have nice day!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants