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

Bug Report crypto.getRandomValues() not supported. #953

Open
1 of 3 tasks
rodrigodiasf1984 opened this issue Oct 8, 2024 · 15 comments
Open
1 of 3 tasks

Bug Report crypto.getRandomValues() not supported. #953

rodrigodiasf1984 opened this issue Oct 8, 2024 · 15 comments
Labels

Comments

@rodrigodiasf1984
Copy link

rodrigodiasf1984 commented Oct 8, 2024

image

Additional context

  • Library Version: [^2.5.6] and ^2.5.7

  • React Native Version: [0.74.3]

  • [x ] iOS

  • Android

  • Web

If you are using expo please indicate here:

  • I am using expo

any help?

@Gyanprakash73
Copy link

I am also facing the same issue

@rodrigodiasf1984
Copy link
Author

I am also facing the same issue

i've downgraded the version to "react-native-google-places-autocomplete": "2.5.6", without ^ , remove the node_modules, yarn.lock and yarn install and pod install, i've tested in ios and android, this works! Hope the problem will be solved in the next version.

@DimitrisGounaris
Copy link

Same, had to downgrade to 2.5.6

@Gyanprakash73
Copy link

I am also facing the same issue

i've downgraded the version to "react-native-google-places-autocomplete": "2.5.6", without ^ , remove the node_modules, yarn.lock and yarn install and pod install, i've tested in ios and android, this works! Hope the problem will be solved in the next version.

Thanks, It is working without ^ .

@sunnyatmoveai
Copy link

For others who come here, you don't need to downgrade (at least I didn't). I'm on expo 50.0.17 and got around this by installing react-native-get-random-values and simply doing import 'react-native-get-random-values' in my root layout file.

@iamdanajr
Copy link

For others who come here, you don't need to downgrade (at least I didn't). I'm on expo 50.0.17 and got around this by installing react-native-get-random-values and simply doing import 'react-native-get-random-values' in my root layout file.

Thanks, it's worked for me.

@generosocarbone
Copy link

For others who come here, you don't need to downgrade (at least I didn't). I'm on expo 50.0.17 and got around this by installing react-native-get-random-values and simply doing import 'react-native-get-random-values' in my root layout file.

This didn't work for me BUT I'm not in expo

@gaurav-relife
Copy link

I am also facing the same issue

i've downgraded the version to "react-native-google-places-autocomplete": "2.5.6", without ^ , remove the node_modules, yarn.lock and yarn install and pod install, i've tested in ios and android, this works! Hope the problem will be solved in the next version.

Thanks, It is working without ^ .

working for react native 73.9

@ChromeQ
Copy link

ChromeQ commented Oct 10, 2024

For others who come here, you don't need to downgrade (at least I didn't). I'm on expo 50.0.17 and got around this by installing react-native-get-random-values and simply doing import 'react-native-get-random-values' in my root layout file.

Thanks, this works. Note that this will require you to rebuild the app and submit a new version to the app stores, if you just want to push updates out over the air (such as expo-updates) then the only option is to downgrade to v2.5.6 as mentioned above.

@rnkdsh
Copy link

rnkdsh commented Oct 10, 2024

+1

@zainali225
Copy link

Its using uuid dependency. Remove uuid and use Math.random().

@csychenci
Copy link

对于其他来这里的人,您无需降级(至少我没有)。我在 expo 50.0.17 上,通过安装react-native-get-random-values并简单地import 'react-native-get-random-values'在我的根布局文件中执行操作解决了这个问题。

thanks,This is effective for me

@nirunnu1
Copy link

I am also facing the same issue

i've downgraded the version to "react-native-google-places-autocomplete": "2.5.6", without ^ , remove the node_modules, yarn.lock and yarn install and pod install, i've tested in ios and android, this works! Hope the problem will be solved in the next version.

Thanks, it's worked for me. expo 51.0.6 react native 0.75.2

@israr-Viltco
Copy link

israr-Viltco commented Oct 28, 2024

solve this issue. I’m using react native. you just sample install this package if you using yarn then yarn add react-native-get-random-values OR npm install react-native-get-random-values. only import import 'react-native-get-random-values' in your route files likes, i import index.js and app.js

@sunnyatmoveai
Copy link

solve this issue. I’m using react native. you just sample install this package if you using yarn then yarn add react-native-get-random-values OR npm install react-native-get-random-values. only import import 'react-native-get-random-values' in your route files likes, i import index.js and app.js

I should just add that since this is a mobile bundle, there's no code splitting and you shouldn't import multiple times. I doubt it hurts anything but just import once somewhere toward the top of your component tree and you'll be good to go.

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

No branches or pull requests