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

[react-native] New AnimatedComponent type doesn't accept refs #42806

Closed
4 tasks done
benhamlin opened this issue Mar 3, 2020 · 2 comments · Fixed by #44296
Closed
4 tasks done

[react-native] New AnimatedComponent type doesn't accept refs #42806

benhamlin opened this issue Mar 3, 2020 · 2 comments · Fixed by #44296

Comments

@benhamlin
Copy link

The AnimatedComponent type added in change f7ba6e8 are most welcome, but currently don't accept a ref prop. This is especially problematic on ScrollViews and such, as being able to call the various imperative scrollTo methods is pretty important.

Property 'ref' does not exist on type 'IntrinsicAttributes & AnimatedProps<ScrollViewProps> & { children?: ReactNode; }'.ts(2322)
  • I tried using the @types/xxxx package and had problems.
  • I tried using the latest stable version of tsc. https://www.npmjs.com/package/typescript
  • I have a question that is inappropriate for StackOverflow. (Please ask any appropriate questions there).
  • Mention the authors (see Definitions by: in index.d.ts) so they can respond.
    • Authors: @alloy @zusinShinpei
@alloy
Copy link
Collaborator

alloy commented Mar 4, 2020

I think this is covered by #42446

@kyimoemin
Copy link
Contributor

do you find a way to deal with it? I'm facing the same problem

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