Skip to content

Commit

Permalink
fix: typing (#301)
Browse files Browse the repository at this point in the history
  • Loading branch information
deanvanniekerk authored Apr 30, 2021
1 parent 0c869c4 commit ccafe14
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion typings/react-native-animatable.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ import {
import {
StatelessComponent,
ComponentClass,
ClassicComponentClass
ClassicComponentClass,
Component
} from 'react';

export type EasingFunction ={(t: number) :number};
Expand Down Expand Up @@ -139,8 +140,13 @@ type AnimatableAnimationMethods =
interface AnimatableComponent<P extends {}, S extends {}> extends
NativeMethodsMixin,
AnimatableAnimationMethods,
Component,
ClassicComponentClass<AnimatableProperties<S> & P> {

refs: {
[key: string]: Component<P, S>
}

stopAnimation(): void;

transition<T extends S>(
Expand Down

0 comments on commit ccafe14

Please sign in to comment.