react-spring
Version:
Animate React with ease
39 lines (36 loc) • 1.21 kB
JavaScript
import * as Globals from '../../animated/Globals'
import Animation from '../../animated/Animation'
import AnimatedValue from '../../animated/AnimatedValue'
import SpringAnimation from '../../animated/SpringAnimation'
import controller from '../../animated/AnimatedController'
import { interpolate } from '../../animated/AnimatedInterpolation'
import animated from '../../animated/createAnimatedComponent'
import { config } from '../shared/constants'
import Spring from '../../Spring'
import Transition from '../../Transition'
import Trail from '../../Trail'
import Keyframes from '../../Keyframes'
import createInterpolation from '../shared/interpolation'
import colorNames from '../shared/colors'
import AnimatedTransform from './AnimatedTransform'
Globals.injectInterpolation(createInterpolation)
Globals.injectColorNames(colorNames)
Globals.injectApplyAnimatedValues(
(instance, props) =>
instance.setNativeProps ? instance.setNativeProps(props) : false,
style => ({ ...style, transform: new AnimatedTransform(style.transform) })
)
export {
Spring,
Keyframes,
Transition,
Trail,
Animation,
SpringAnimation,
AnimatedValue,
config,
controller,
interpolate,
animated,
Globals,
}