@gorhom/bottom-sheet
Version:
A performant interactive bottom sheet with fully configurable options 🚀
19 lines (17 loc) • 465 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.exp = void 0;
/**
* A modified version of the default AnimatedEasing.exp,
* to insure its value never goes below `0`.
* @see https://github.com/software-mansion/react-native-reanimated/issues/1610
* @param t number
*/
const exp = t => {
'worklet';
return Math.min(Math.max(0, Math.pow(2, 10 * (t - 1))), 1);
};
exports.exp = exp;
//# sourceMappingURL=easingExp.js.map
;