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

createAnimatedComponent does not support stateless functional components; use a class component instead. #38

Closed
rodolfovilaca opened this issue Jul 11, 2018 · 1 comment

Comments

@rodolfovilaca
Copy link

Description

I just started a react native project to play around using react-native init and did the linking step.
Changed the default buildToolsVersion of my project from 23.0.1 to 25.0.0, which is the minimum sdk version required.
Only added this line of code to the default react-native project generated:

import Animated from 'react-native-reanimated;

And I get this strange error:

`createAnimatedComponent` does not support stateless functional components; use a class component instead.

I guess this could be related to this cc4ab7f ?

Steps to reproduce:

  • react-native init PlaygroundApp
  • yarn add react-native-reanimated
  • react-native link react-native-reanimated

Versions:

"react": "16.4.1",
"react-native": "0.56.0",
"react-native-reanimated": "^1.0.0-alpha.4"
@kmagiera
Copy link
Member

Hey @rodolfovilaca! Thanks for reaching out. This issue has already been reported and fixed around the same time you posted this issue. Please check if alpha.5 works ok for you https://github.com/kmagiera/react-native-reanimated/releases/tag/1.0.0-alpha.5

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

2 participants