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

Accessing ref node #74

Open
souporserious opened this issue Jul 5, 2017 · 2 comments
Open

Accessing ref node #74

souporserious opened this issue Jul 5, 2017 · 2 comments

Comments

@souporserious
Copy link

Am I right in using ref={c => this.node = c && c.refs.node} on an Animated component to access the underlying node? I was unsure of the best way to do this. Apologies if this is documented somewhere, I couldn't seem to find anything. If not, I'd be happy to add proper docs wherever.

@browniefed
Copy link
Member

Technically you'd want to access refs.node but the React Native implementation added a getNode method. We should also not be using string refs anymore. That should be fixed.

@souporserious
Copy link
Author

Awesome. Anything that can be PR'd? I'd be happy to help if I can.

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