Add missing documentation to animated spring config

Reviewed By: ericvicenti

Differential Revision: D5136367

fbshipit-source-id: 69e7afb80406196fd5c3352d5f80e23cf7463491
This commit is contained in:
Reem Helou 2017-05-30 14:34:02 -07:00 committed by Facebook Github Bot
parent 0a6935618c
commit cd49a5b289
1 changed files with 4 additions and 1 deletions

View File

@ -2744,10 +2744,13 @@ module.exports = {
* [Origami](https://facebook.github.io/origami/). Tracks velocity state to * [Origami](https://facebook.github.io/origami/). Tracks velocity state to
* create fluid motions as the `toValue` updates, and can be chained together. * create fluid motions as the `toValue` updates, and can be chained together.
* *
* Config is an object that may have the following options: * Config is an object that may have the following options. Note that you can
* only define bounciness/speed or tension/friction but not both:
* *
* - `friction`: Controls "bounciness"/overshoot. Default 7. * - `friction`: Controls "bounciness"/overshoot. Default 7.
* - `tension`: Controls speed. Default 40. * - `tension`: Controls speed. Default 40.
* - `speed`: Controls speed of the animation. Default 12.
* - `bounciness`: Controls bounciness. Default 8.
* - `useNativeDriver`: Uses the native driver when true. Default false. * - `useNativeDriver`: Uses the native driver when true. Default false.
*/ */
spring, spring,