dev-event / react-native-accordion

Animated collapsible component for React Native, good for accordions (reanimated v2), toggles 🧬
https://www.npmjs.com/package/@dev-event/react-native-accordion
MIT License
64 stars 11 forks source link

Value is undefined, expected an object #1

Closed daxaxelrod closed 2 years ago

daxaxelrod commented 2 years ago

Hi! Got an error when trying to run an example without much custom code, see attached. I also found this thread on reanimated about it. IMG_2001

https://github.com/software-mansion/react-native-reanimated/issues/1758

dev-event commented 2 years ago

hi

dev-event commented 2 years ago

what is your reanimated version? If new, then install the same as mine in package.json

daxaxelrod commented 2 years ago

Hi!

"react-native-reanimated": "2.3.0-beta.4". Will try with yours

daxaxelrod commented 2 years ago

That worked! Problem is that we need to stay on at least that reanimated version as prior versions cause fatal crashes for us on android.

dev-event commented 2 years ago

This is because reanimated changes the API in each version. Problem persisting version Good luck! If there are problems - feedback😊

daxaxelrod commented 2 years ago

Feel free to keep closed, just commented for the record. Ive narrowed it down to const style = useAnimatedStyle(() => ({ height: size.value * progress.value + 1, opacity: progress.value === 0 ? 0 : 1 }));

but have no idea why as thats a valid useAnimatedStyle

teckbeng-payboy commented 2 years ago

Do I need to install these 2 packages in order to work?

react-native-reanimated react-native-redash