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

why Animate.div is undefined?how can i use it #71

Open
nai6514531 opened this issue Jun 28, 2017 · 3 comments
Open

why Animate.div is undefined?how can i use it #71

nai6514531 opened this issue Jun 28, 2017 · 3 comments

Comments

@nai6514531
Copy link

image

@soutar
Copy link

soutar commented Jun 28, 2017

Assuming you're using the default export from 'animated', try import Animated from 'animated/lib/targets/react-dom'; instead

@nai6514531
Copy link
Author

@soutar i import it like what you said.i can print Animated.but i cant print <Animated.div>,it is undefined.

@amannn
Copy link

amannn commented Jun 29, 2017

I've used it like this:

import * as Animated from 'animated/lib/targets/react-dom';

<Animated.div />

This works for me.

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

3 participants