UNPKG

react-native-reanimated

Version:

More powerful alternative to Animated library for React Native.

49 lines (43 loc) 1.03 kB
'use strict'; import type { PredefinedTimingFunction, StepsModifier } from '../easing'; import type { CSSAnimationProp, CSSTransitionProp } from '../types'; export const ANIMATION_PROPS: CSSAnimationProp[] = [ 'animationName', 'animationDuration', 'animationTimingFunction', 'animationDelay', 'animationIterationCount', 'animationDirection', 'animationFillMode', 'animationPlayState', ]; export const TRANSITION_PROPS: CSSTransitionProp[] = [ 'transitionProperty', 'transitionDuration', 'transitionTimingFunction', 'transitionDelay', 'transitionBehavior', 'transition', ]; export const VALID_STEPS_MODIFIERS: StepsModifier[] = [ 'jump-start', 'start', 'jump-end', 'end', 'jump-none', 'jump-both', ]; export const VALID_PREDEFINED_TIMING_FUNCTIONS: PredefinedTimingFunction[] = [ 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out', 'step-start', 'step-end', ]; export const VALID_PARAMETRIZED_TIMING_FUNCTIONS: string[] = [ 'cubic-bezier', 'steps', 'linear', ];