mirror of
https://github.com/expo/react-apple-easing.git
synced 2026-11-15 09:08:07 -10:00
16 lines
423 B
JavaScript
16 lines
423 B
JavaScript
/**
|
|
* @flow
|
|
*/
|
|
'use strict';
|
|
|
|
let { Easing } = require('react-native');
|
|
|
|
const EPSILON = 1e-9;
|
|
|
|
// See Apple's "CAMediaTimingFunction Class Reference" for the Bezier control
|
|
// points
|
|
exports.easeIn = Easing.bezier(0.42, 0, 1, 1, EPSILON);
|
|
exports.easeOut = Easing.bezier(0, 0, 0.58, 1, EPSILON);
|
|
exports.easeInOut = Easing.bezier(0.42, 0, 0.58, 1, EPSILON);
|
|
exports.default = Easing.bezier(0.25, 0.1, 0.25, 1, EPSILON);
|