Add missing documentation to animated spring config
Reviewed By: ericvicenti Differential Revision: D5136367 fbshipit-source-id: 69e7afb80406196fd5c3352d5f80e23cf7463491
This commit is contained in:
Родитель
0a6935618c
Коммит
cd49a5b289
|
@ -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,
|
||||
|
|
Загрузка…
Ссылка в новой задаче