Skip to content

Commit

Permalink
Fix missing animation type (CircleCI Break)
Browse files Browse the repository at this point in the history
Summary:
Accidentally added a reference to a flow type that doesn't exist in TS. This should fix the issue.

Changelog:
[General][Fixed] - Fix missing animation type

Reviewed By: christophpurrer

Differential Revision: D42043293

fbshipit-source-id: 03470aa25f503337e9e2b79cf74cff96c15a4ad8
  • Loading branch information
NickGerleman authored and facebook-github-bot committed Dec 15, 2022
1 parent c0834b8 commit b15be0e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Libraries/Animated/Animated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,17 @@ export namespace Animated {

type ValueListenerCallback = (state: {value: number}) => void;

type Animation = {
start(
fromValue: number,
onUpdate: (value: number) => void,
onEnd: EndCallback | null,
previousAnimation: Animation | null,
animatedValue: AnimatedValue,
): void;
stop(): void;
};

/**
* Standard value for driving animations. One `Animated.Value` can drive
* multiple properties in a synchronized fashion, but can only be driven by one
Expand Down

0 comments on commit b15be0e

Please sign in to comment.