react-native-google-places-autocomplete icon indicating copy to clipboard operation
react-native-google-places-autocomplete copied to clipboard

Bug Report crypto.getRandomValues() not supported.

Open rodrigodiasf1984 opened this issue 1 year ago • 21 comments

image

Additional context

  • Library Version: [^2.5.6] and ^2.5.7

  • React Native Version: [0.74.3]

  • [x ] iOS

  • [x] Android

  • [ ] Web

If you are using expo please indicate here:

  • [ ] I am using expo

any help?

rodrigodiasf1984 avatar Oct 08 '24 07:10 rodrigodiasf1984

I am also facing the same issue

Gyanprakash73 avatar Oct 08 '24 08:10 Gyanprakash73

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.

rodrigodiasf1984 avatar Oct 08 '24 08:10 rodrigodiasf1984

Same, had to downgrade to 2.5.6

DimitrisGounaris avatar Oct 08 '24 08:10 DimitrisGounaris

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 ^ .

Gyanprakash73 avatar Oct 08 '24 14:10 Gyanprakash73

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.

sunnyatmoveai avatar Oct 08 '24 16:10 sunnyatmoveai

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.

iamdanajr avatar Oct 08 '24 18:10 iamdanajr

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

generosocarbone avatar Oct 08 '24 18:10 generosocarbone

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

gaurav-relife avatar Oct 09 '24 11:10 gaurav-relife

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.

ChromeQ avatar Oct 10 '24 00:10 ChromeQ

+1

rnkdsh avatar Oct 10 '24 17:10 rnkdsh

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

zainali225 avatar Oct 11 '24 13:10 zainali225

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

thanks,This is effective for me

csychenci avatar Oct 18 '24 09:10 csychenci

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

nirunnu1 avatar Oct 21 '24 03:10 nirunnu1

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

israr-Viltco avatar Oct 28 '24 10:10 israr-Viltco

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.

sunnyatmoveai avatar Oct 28 '24 14:10 sunnyatmoveai

++

khethelogp avatar Nov 29 '24 11:11 khethelogp

same issue facing downgrading from '^2.5.7' to '2.5.6' work it

adnan-khattak avatar Dec 25 '24 11:12 adnan-khattak

import 'react-native-get-random-values'

Worked like a charm <3

eramudeep avatar Dec 28 '24 05:12 eramudeep

Its working for me, Thanks

Remove ('^2.5.7' or '^2.5.6') to '2.5.6'

shrikant-solidity avatar Jan 03 '25 06:01 shrikant-solidity

just npm i --save react-native-get-random-values'

and import this to your index.js file

import 'react-native-get-random-values'

denizkoele avatar Mar 16 '25 16:03 denizkoele

"react-native": "0.76.7",
"expo": "^52.0.37",

Fix worked for me thank you 🙌

Does anyone know if there will be a fix so we don't need to rely on react-native-get-random-values?

Jordey92 avatar Mar 17 '25 14:03 Jordey92

This is fixed in the latest release.

bilal1031 avatar Nov 20 '25 16:11 bilal1031