Animated
Methods #
static delay(time: number) #
static sequence(animations: Array<CompositeAnimation>) #
static parallel(animations: Array<CompositeAnimation>, config?: ParallelConfig) #
static stagger(time: number, animations: Array<CompositeAnimation>) #
static decay(value: AnimatedValue | AnimatedValueXY, config: DecayAnimationConfig) #
static timing(value: AnimatedValue | AnimatedValueXY, config: TimingAnimationConfig) #
static spring(value: AnimatedValue | AnimatedValueXY, config: SpringAnimationConfig) #
static event(argMapping: Array<Mapping>, config?: EventConfig) #
static createAnimatedComponent(Component: any) #
Properties #
ValueXY: AnimatedValueXY #
class AnimatedValue #
Methods #
constructor(value: number) #
setValue(value: number) #
setOffset(offset: number) #
addListener(callback: ValueListenerCallback) #
removeListener(id: string) #
animate(animation: Animation, callback: EndCallback) #
stopAnimation(callback?: ?(value: number) => void) #
track(tracking: Animated) #
interpolate(config: InterpolationConfigType) #
class AnimatedValueXY #
Methods #
constructor(valueIn?: ?{x: number | AnimatedValue; y: number | AnimatedValue}) #
setValue(value: {x: number; y: number}) #
setOffset(offset: {x: number; y: number}) #
stopAnimation(callback?: ?() => number) #
addListener(callback: ValueXYListenerCallback) #
removeListener(id: string) #
getTranslateTransform() #