axelra-ag / react-native-animateable-text

🆎 A fork of React Native's <Text/> component that supports Animated Values!
https://www.npmjs.com/package/react-native-animateable-text
MIT License
362 stars 27 forks source link

Crash on react native 0.74 #46

Closed forchello closed 4 months ago

forchello commented 5 months ago

TypeError: Cannot read property 'touchableGetInitialState' of undefined
This error is located at:
in TouchableText (created by Animateable)
in Text (created by AnimatedComponent(Animateable))
in AnimatedComponent(Animateable)
in Unknown (created by LoadingBar)

forchello commented 5 months ago

Screenshot 2024-04-23 at 21 38 40

P.S. temporary fix, just comment ...Touchable.Mixin.touchableGetInitialState() inside TouchableText (_nodemodules/react-native-animateable-text/src/AnimateableText.tsx)

mzaien commented 4 months ago

I can confirm this works

is it a type issue only? the function is still there from react-native repo

image

Screenshot 2024-04-23 at 21 38 40

P.S. temporary fix, just comment ...Touchable.Mixin.touchableGetInitialState() inside TouchableText (_nodemodules/react-native-animateable-text/src/AnimateableText.tsx)

JonnyBurger commented 4 months ago

If there is a PR I will merge and make a release

Would be nice if README compatibility table is updated too 🙂