UNPKG

@audira/carbon-react-native

Version:

Build React Native apps with component and shared patterns using Carbon

27 lines (26 loc) 1.11 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.FadeBottomUp = void 0; var _reactNative = require("react-native"); var _carbonReactNativeElements = require("@audira/carbon-react-native-elements"); const FadeBottomUp = exports.FadeBottomUp = { duration: _carbonReactNativeElements.Motion.Duration.moderate_02, modalStyleFactory(animatedValue, inputRange) { return { opacity: animatedValue.interpolate({ inputRange, outputRange: [0, 1, 0] }), transform: [{ translateY: animatedValue.interpolate({ inputRange, outputRange: [_carbonReactNativeElements.Spacing.spacing_04, 0, _carbonReactNativeElements.Spacing.spacing_04] }) }] }; }, modalEasing: _reactNative.Easing.bezier(_carbonReactNativeElements.Motion.Easing.entrance.expressive.x1, _carbonReactNativeElements.Motion.Easing.entrance.expressive.y1, _carbonReactNativeElements.Motion.Easing.entrance.expressive.x2, _carbonReactNativeElements.Motion.Easing.entrance.expressive.y2) }; //# sourceMappingURL=fade-bottom-up.js.map