nandorojo / moti

🐼 The React Native (+ Web) animation library, powered by Reanimated 3.
https://moti.fyi
MIT License
3.9k stars 120 forks source link

does not work with react-native-web 0.19 #281

Closed macrozone closed 1 year ago

macrozone commented 1 year ago

Is there an existing issue for this?

Current Behavior

moti does not work with react-native-web 0.19.x, it yields TypeError: Cannot convert undefined or null to object

upstream issue: https://github.com/software-mansion/react-native-reanimated/issues/4335

there is a closed issue, but since it is closed, i think its better to reopen a new one (https://github.com/nandorojo/moti/issues/103)

i can confirm it works properly with react-native-web 0.18.0.

Expected Behavior

should work with the latest react-native-web

Steps To Reproduce

No response

Versions

- Moti:0.24.2
- Reanimated: 3.10
- React Native: 0.71.6

Screenshots

No response

Reproduction

todo

nandorojo commented 1 year ago

looks like this fixes it https://github.com/software-mansion/react-native-reanimated/pull/4352/files

macrozone commented 1 year ago

looks like this fixes it https://github.com/software-mansion/react-native-reanimated/pull/4352/files

could not test it though, i currently downgraded react-native-web

nandorojo commented 1 year ago

You could patch reanimated if you want, but yeah that also works for now

nandorojo commented 1 year ago

I think reanimated 3.3 fixes this.