Skip to content

Commit

Permalink
Merge pull request #592 from PierreCapo/master
Browse files Browse the repository at this point in the history
Update api.md
  • Loading branch information
emilioicai committed Nov 25, 2019
2 parents 2c41651 + 1489cf6 commit a9a82a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
|---|---|---|
|**`source`**| **Mandatory** - The source of animation. Can be referenced as a local asset by a string, or remotely with an object with a `uri` property, or it can be an actual JS object of an animation, obtained (for example) with something like `require('../path/to/animation.json')` |*None*|
|**`progress`**| A number between 0 and 1, or an `Animated` number between 0 and 1. This number represents the normalized progress of the animation. If you update this prop, the animation will correspondingly update to the frame at that progress value. This prop is not required if you are using the imperative API. |`0`|
|**`speed`**| The speed the animation will progress. This only affects the imperative API. Sending a negative value will reverse the animation |`1`|
|**`speed`**| The speed the animation will progress. Sending a negative value will reverse the animation |`1`|
|**`duration`**| The duration of the animation in ms. Takes precedence over `speed` when set. This only works when `source` is an actual JS object of an animation. |`undefined`|
|**`loop`**|A boolean flag indicating whether or not the animation should loop. |`true`|
|**`autoPlay`**|A boolean flag indicating whether or not the animation should start automatically when mounted. This only affects the imperative API. |`false`|
Expand Down

0 comments on commit a9a82a4

Please sign in to comment.