Properties
bounce
bounce: EasingFunction
circle
circle: EasingFunction
cubic
cubic: EasingFunction
ease
ease: EasingFunction
easeInBack
easeInBack: EasingFunction
easeInBounce
easeInBounce: EasingFunction
easeInCirc
easeInCirc: EasingFunction
easeInCubic
easeInCubic: EasingFunction
easeInElastic
easeInElastic: EasingFunction
easeInExpo
easeInExpo: EasingFunction
easeInOutBack
easeInOutBack: EasingFunction
easeInOutBounce
easeInOutBounce: EasingFunction
easeInOutCirc
easeInOutCirc: EasingFunction
easeInOutCubic
easeInOutCubic: EasingFunction
easeInOutElastic
easeInOutElastic: EasingFunction
easeInOutExpo
easeInOutExpo: EasingFunction
easeInOutQuad
easeInOutQuad: EasingFunction
easeInOutQuart
easeInOutQuart: EasingFunction
easeInOutQuint
easeInOutQuint: EasingFunction
easeInOutSine
easeInOutSine: EasingFunction
easeInQuad
easeInQuad: EasingFunction
easeInQuart
easeInQuart: EasingFunction
easeInQuint
easeInQuint: EasingFunction
easeInSine
easeInSine: EasingFunction
easeOutBack
easeOutBack: EasingFunction
easeOutBounce
easeOutBounce: EasingFunction
easeOutCirc
easeOutCirc: EasingFunction
easeOutCubic
easeOutCubic: EasingFunction
easeOutElastic
easeOutElastic: EasingFunction
easeOutExpo
easeOutExpo: EasingFunction
easeOutQuad
easeOutQuad: EasingFunction
easeOutQuart
easeOutQuart: EasingFunction
easeOutQuint
easeOutQuint: EasingFunction
easeOutSine
easeOutSine: EasingFunction
linear
linear: EasingFunction
normal
normal: EasingFunction
quad
quad: EasingFunction
step0
step0: EasingFunction
step1
step1: EasingFunction
Provides aliases for animation easing. These are often used when using the React Native
Animated
APIs:`
ts import * as React from 'react'; import { Animated } from 'react-native';export class AnimatedComponent extends React.PureComponent {
private value: Animated.Value = new Animated.Value(0);
componentDidMount(): void { const animate = () => { Animated.sequence([ Animated.timing(this.value, { toValue: 10, duration: theme.constants.animation.timing.normal, easing: theme.constants.animation.easing.normal, useNativeDriver: true, }), Animated.timing(this.value, { toValue: -10, duration: theme.constants.animation.timing.normal, easing: theme.constants.animation.easing.normal, useNativeDriver: true, }), ]).start(({ finished }) => { if (finished) { animate(); } }); }; animate(); }
componentWillUnmount(): void { this.value.stopAnimation(); }
render(): React.ReactNode { return (<Animated.View style={{ transform: [{translateX: this.value }]}}); } }
`
AnimationEasing
https://easings.net/