react-native-reanimated-carousel
react-native-reanimated-carousel copied to clipboard
TypeError: Cannot read property 'computedFillDataWithAutoFillData' of undefined
Getting this error after creating react native project with 0.70.1 version and try to use this with proper installation but getting issue. Tried other carousel packages but getting many error with recent react native version. Thanks in advance for help!
the same for me
I had the same issue make sure you add plugins: [ 'react-native-reanimated/plugin', ]
to babel.config.js
and you also did npm run android
(or the IOS one) with import 'react-native-gesture-handler';
on top of your APP file.
I was missing the plugin line in babel and that did the trick.
I had the same issue make sure you add
plugins: [ 'react-native-reanimated/plugin', ]
tobabel.config.js
and you also didnpm run android
(or the IOS one) withimport 'react-native-gesture-handler';
on top of your APP file.I was missing the plugin line in babel and that did the trick.
This not working for me
@fathur try running npm start -- --reset-cache
after editing your babel plugin. See the Info block on the babel section of the reanimated docs.
Above mentioned changes not working on the latest version of RN.
Hi guys.
Little comment, the PanGestureHandler (a component from the Reanimated package) doesnt work with the Native Stack of the React Navigation package.
If you use the native-stack, React Reanimated wont be work. Use the stack only, not the native.
Above mentioned changes not working on the latest version of RN.
Same here. I added the plugin to babel config. Still doesn't work. RN 0.70.6 I tried also with RN 0.71.0-rc.5, same error :-/
Update: After struggling with it, I added react-native-reanimated only to a new RN project and found out the issue is with this package. Eventually, it was just uninstalling the app from android emulator and then running it again (npm run android). So, if the reset cache doesn't work for you, uninstall your app and reinstall it.
TLDR Fixing steps:
- add
plugins: [ 'react-native-reanimated/plugin']
to babel.config.js -
npm start -- --reset-cache
- if you still get an error, uninstall the app from your device/emulated device, and then
npm run android
no one solution work for me :( RN 0.71.1
@fathur try running
npm start -- --reset-cache
after editing your babel plugin. See the Info block on the babel section of the reanimated docs.
This worked for me. I already had plugins: [ 'react-native-reanimated/plugin']
in my babel config file. I had to updated my reanimated version which was my original blocker. After which I ran npm start -- --reset-cache
and it started to work.
Hopefully that helps someone else.
iOS was not working for me, so reinstalling the pods did the job.
cd ios
rm Pods
rm Podfile.lock
rm build
pod install
then build again and should work
You have to add `'react-native-reanimated/plugin', in this way:
plugins: [
[...],
'react-native-reanimated/plugin',
],
Then close Simulator and Xcode if opened, close metro, launch npm start -- --reset-cache
then npm run ios
or npm run android
and it works!
I can reproduce it each time on Android 8. It comes with this exception:
Error: Exception in HostFunction: java.lang.NoSuchMethodError: no non-static method "Lcom/swmansion/reanimated/NativeProxy;.registerEventHandler(Lcom/swmansion/reanimated/nativeProxy/EventHandler;)V", js engine: hermes
It's similar to this issue: https://github.com/software-mansion/react-native-reanimated/issues/4135 and the patch fixes may problems
This eventually worked : react-native start --reset-cache
no solution works for me. :(
Hi, I am facing iOS crash issue having the same error log(computedFillDataWithAutoFillData) with these versions :
"react-native-reanimated": "2.17.0", "react-native-reanimated-carousel": "3.5.1", "react-native-gesture-handler": "2.9.0", "react": "18.2.0", "react-native": "0.71.11"
I have followed all the above steps, but its still not working.
Please help if anyone has any idea as I am stuck for my iOS release.
It's disappointing to see this issue unresolved after over a year, I am getting the same issue as everyone here.
me too
react-native-reanimated/plugin'
thanks bro @aminta
Check package.json file of the package and make sure you installed relevant reanimated and gesture handler versions