Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't turn Skottie into an animated component via Reanimated.createAnimatedComponent() #51

Open
TowhidKashem opened this issue Jun 10, 2024 · 0 comments

Comments

@TowhidKashem
Copy link

TowhidKashem commented Jun 10, 2024

The following code:

    import Reanimated from 'react-native-reanimated';

    const AnimatedSkottieView = Reanimated.createAnimatedComponent(Skottie);

    <AnimatedSkottieView
      ref={scottieRef}
      source={require('assets/animations/hello-world.json')}
      style={{
        width: 250,
        height: 250
      }}
    />

results in the following error:

Error: Argument appears to not be a ReactComponent. Keys: play,pause,reset

Would be cool if we could turn it into an animated component to do things like making it hover, pulsate and other subtle animations on the component itself. Aside from that the component is working great, super smooth transition from react-native-lottie, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant