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
360 stars 27 forks source link

No ViewManager found for class JBAnimatedText #15

Open thespacemanatee opened 3 years ago

thespacemanatee commented 3 years ago

Description

I encounter the error in the issue title with the code snippet below.

Screenshots

Snack or minimal code example

const points = useDerivedValue(() => {
    const p = point.value.data.y;
    return `${round(p, 1)}`;
  });

  const animatedPointsProps = useAnimatedProps(() => {
    return {
      text: points.value,
    };
  });

  return (
    <View style={styles.contentContainer}>
      <AnimateableText
        style={styles.date}
        animatedProps={animatedPointsProps} // same error if I hardcode text='hello'
      />
    </View>
  );

Package versions

JonnyBurger commented 3 years ago

Could not repro, what RN version are you using? Also see the compatibility table on the README

thespacemanatee commented 3 years ago

I am using the latest expo SDK 42 and have double-checked the compatibility table. It works with my other projects which I started from scratch from though, but I posted this issue in case someone else knew about this.

Edit: forgot expo still uses RN 0.63, my bad, will report back if older versions work and close this issue.

thespacemanatee commented 3 years ago

Update: still crashes but only on expo projects Any plans for expo support in the future?

JonnyBurger commented 3 years ago

We don't use Expo for any company project neither do I personally so for Expo support, we'd appreciate an effort from the community. Sorry!

JesperSporronRocker commented 2 years ago

I have the same issue, can reproduce using OP:s code snippet. Detached Expo project. The error message is different on Android and iOS and they look as such:

Versions:

Maybe it doesn't support Expo at all? That would be a shame.

JonnyBurger commented 2 years ago

@JesperSporronRocker Yes that's right, we don't support Expo at the moment. Looking for someone in the community to implement and maintain it, we don't have any Expo projects.

robrechtme commented 1 year ago

Super nice lib but no Expo support 😢