react-native-reanimated-carousel icon indicating copy to clipboard operation
react-native-reanimated-carousel copied to clipboard

TypeError: Cannot read property 'computedFillDataWithAutoFillData' of undefined

Open RaviGehlotInfoBeans opened this issue 2 years ago • 18 comments

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!

RaviGehlotInfoBeans avatar Sep 27 '22 13:09 RaviGehlotInfoBeans

the same for me

SergeyKulakovintive avatar Oct 07 '22 15:10 SergeyKulakovintive

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.

Jacxk avatar Oct 11 '22 16:10 Jacxk

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.

This not working for me

fathur avatar Nov 21 '22 00:11 fathur

@fathur try running npm start -- --reset-cache after editing your babel plugin. See the Info block on the babel section of the reanimated docs.

vc-ca avatar Nov 26 '22 19:11 vc-ca

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.

blah-iseeyou avatar Dec 22 '22 00:12 blah-iseeyou

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

shayvt avatar Dec 27 '22 19:12 shayvt

no one solution work for me :( RN 0.71.1

ibroid avatar Feb 14 '23 10:02 ibroid

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

squirrelhomie avatar Feb 14 '23 17:02 squirrelhomie

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

grigdodon avatar Feb 20 '23 10:02 grigdodon

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!

aminta avatar Feb 27 '23 15:02 aminta

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

lorenc-tomasz avatar Mar 15 '23 13:03 lorenc-tomasz

It's similar to this issue: https://github.com/software-mansion/react-native-reanimated/issues/4135 and the patch fixes may problems

lorenc-tomasz avatar Mar 15 '23 13:03 lorenc-tomasz

This eventually worked : react-native start --reset-cache

AnassHmida avatar Apr 16 '23 01:04 AnassHmida

no solution works for me. :(

NgocLe1001 avatar Jul 20 '23 12:07 NgocLe1001

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.

Screenshot 2023-08-28 at 11 13 17 AM

d-patira avatar Aug 28 '23 06:08 d-patira

It's disappointing to see this issue unresolved after over a year, I am getting the same issue as everyone here.

SamJbori avatar Sep 28 '23 10:09 SamJbori

me too

vivakimjisu avatar Nov 02 '23 07:11 vivakimjisu

react-native-reanimated/plugin'

thanks bro @aminta

alirezatav avatar Nov 14 '23 08:11 alirezatav

Check package.json file of the package and make sure you installed relevant reanimated and gesture handler versions

jsathu07 avatar Feb 27 '24 09:02 jsathu07