From cd49a5b289bd4785e57b8007069fec0ff968a0d2 Mon Sep 17 00:00:00 2001 From: Reem Helou Date: Tue, 30 May 2017 14:34:02 -0700 Subject: [PATCH] Add missing documentation to animated spring config Reviewed By: ericvicenti Differential Revision: D5136367 fbshipit-source-id: 69e7afb80406196fd5c3352d5f80e23cf7463491 --- Libraries/Animated/src/AnimatedImplementation.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Libraries/Animated/src/AnimatedImplementation.js b/Libraries/Animated/src/AnimatedImplementation.js index f68d931a1..5143899de 100644 --- a/Libraries/Animated/src/AnimatedImplementation.js +++ b/Libraries/Animated/src/AnimatedImplementation.js @@ -2744,10 +2744,13 @@ module.exports = { * [Origami](https://facebook.github.io/origami/). Tracks velocity state to * 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. * - `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. */ spring,