react-native-animateable-text icon indicating copy to clipboard operation
react-native-animateable-text copied to clipboard

No ViewManager found for class JBAnimatedText

Open thespacemanatee opened this issue 3 years ago • 7 comments

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

  • React Native Animateable Text: 0.6.2
  • React Native Reanimated: 2.2.0

thespacemanatee avatar Jun 28 '21 09:06 thespacemanatee

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

JonnyBurger avatar Jul 01 '21 09:07 JonnyBurger

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 avatar Jul 13 '21 10:07 thespacemanatee

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

thespacemanatee avatar Jul 13 '21 11:07 thespacemanatee

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!

JonnyBurger avatar Aug 24 '21 09:08 JonnyBurger

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:

  • Android: No ViewManager found for class JBAnimatedText.
  • iOS: No component found for view with name "JBAnimatedText".

Versions:

  • react-native: 0.63.4
  • react-native-animateable-text: tried all versions from 0.5.9 up to 0.8.0
  • react-native-reanimated: 2.2.0

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

JesperSporronRocker avatar Oct 14 '21 08:10 JesperSporronRocker

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

JonnyBurger avatar Oct 29 '21 09:10 JonnyBurger

Super nice lib but no Expo support 😢

robrechtme avatar Apr 17 '23 15:04 robrechtme