UNPKG

react-native-blitzllama

Version:

Blitzllama React Native Library

45 lines (44 loc) 1.1 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ANIMATION_CONFIG = exports.ANDROID_PRIMARY_COLOR = exports.IOS_PRIMARY_COLOR = void 0; const react_native_1 = require("react-native"); exports.IOS_PRIMARY_COLOR = '#007AFF'; exports.ANDROID_PRIMARY_COLOR = '#6200EE'; /** * Animation configuration for scaling effect. */ const SCALE_ANIMATION_CONFIG = { PRESS_IN: { toValue: 0.8, easing: react_native_1.Easing.in(react_native_1.Easing.bounce), duration: 100, useNativeDriver: true, }, PRESS_OUT: { toValue: 1, duration: 100, useNativeDriver: true, }, }; /** * Animation configuration for opacity effect. */ const OPACITY_ANIMATION_CONFIG = { PRESS_IN: { toValue: 0.2, duration: 100, useNativeDriver: true, }, PRESS_OUT: { toValue: 1, duration: 200, useNativeDriver: true, }, }; /** * Combined animation configurations. */ exports.ANIMATION_CONFIG = { bouncy: SCALE_ANIMATION_CONFIG, opacity: OPACITY_ANIMATION_CONFIG, };