mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-03-06 17:34:59 +08:00
* Fix invalid easing functions for CardStack 1. `timing` function accepts `TimingAnimationConfig` which expect `easing` (or dont expect at all) function with following signature: `(value: number) => number` 2. under the hood, `TimingAnimation` falls back to `easeInOut` function, if `easing` is not specified `this._easing = config.easing !== undefined ? config.easing : easeInOut();` 3. by mistake passing `Easing.linear()` results in following `typeof Easing.linear(); // undefined` which makes statement in step 2 fall back to `easeInOut` This commit makes passing `easeInOut` function explicit and fixes existing issue and several Flow warnings * Do not memoize easing function, keep things simple