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 #

Value: AnimatedValue #

ValueXY: AnimatedValueXY #

View: CallExpression #

Text: CallExpression #

Image: CallExpression #

class AnimatedValue #

    Methods #

    constructor(value: number) #

    setValue(value: number) #

    setOffset(offset: number) #

    flattenOffset() #

    addListener(callback: ValueListenerCallback) #

    removeListener(id: string) #

    removeAllListeners() #

    animate(animation: Animation, callback: EndCallback) #

    stopAnimation(callback?: ?(value: number) => void) #

    stopTracking() #

    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}) #

    flattenOffset() #

    stopAnimation(callback?: ?() => number) #

    addListener(callback: ValueXYListenerCallback) #

    removeListener(id: string) #

    getLayout() #

    getTranslateTransform() #