-
-
Notifications
You must be signed in to change notification settings - Fork 702
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
Error when using React.RefObject on Animatable.View with Typescript #218
Comments
as always, solution comes when you already posted an issue, ugh... found out working type definition: interface AnimatableComponent<P extends {}, S extends {}> extends
NativeMethodsMixin,
AnimatableAnimationMethods,
Component,
ClassicComponentClass<AnimatableProperties<S> & P> {
refs: {
[key: string]: Component<any, any>
}
/* ... */
} basically, you need to extend from |
Will this be added in an upcoming release? |
…script (see issue oblador#218)
Porque no puedo ver el método animate() |
There's an error when you're trying to use
React.createRef
withAnimatable.View
.This error doesn't affect functionality and everything works, but the error is really annoying.
Here's code snippet that represents the error:
TS compiler says this:
So my guess is that the problem is somewhere around this place in type definition:
I've tried to play around this piece of code with no luck.
Environment:
The text was updated successfully, but these errors were encountered: