API reference

Every export of @kkwaenggwari/animated, with its signature and the guide that explains it.

57 APIs

Values and graphs

Value

new Value(initial: number)

A mutable number with setValue, setOffset, flattenOffset, extractOffset, stopAnimation and resetAnimation.

Guide: Values and style

AnimatedNode

node.getValue() · node.interpolate(config) · node.addListener(fn)

The read-only base of every value and graph: getValue, interpolate and listeners.

Guide: Values and style

React hooks

useAnimated

useAnimated(initial, value => { … }, deps?, { autoStart?, onComplete?, scope? }?)

Own a value plus every controller, input and output declared in its factory. Starts, restarts on dependency changes and cleans up.

Guide: Values and style

Drivers, composition and timelines

Easing

Easing.inOut(Easing.cubic) · Easing.bezier(x1, y1, x2, y2)

Curves matching React Native: linear, quad, cubic, sin, circle, exp, elastic, back, bounce, bezier and in/out helpers.

Guide: Timing, springs and composition

Components and layout

Animated

<Animated.div seed pose tempo respond depart move />;

The namespace of HTML and SVG hosts such as Animated.div, plus the core functions under React Native names.

Guide: Animated components

Input and connections

dragInput

dragInput({ x?, y?, axis?, bounds?, elastic?, momentum?, settle? })

Pointer and keyboard dragging with bounds, elastic edges, momentum and settle.

Guide: Input and gestures

scrollInput

scrollInput({ x?, y?, progressX?, progressY?, target?, through? })

Scroll position and progress of an element, the page, or an element passing through the viewport.

Guide: Input and gestures

Output and diagnostics

Search

Type to search the documentation.