APIs

Find state, storage, networking, media and device APIs by what you need to do. Each reference includes a complete example and exact TypeScript signatures.

State & async data 12

Storage, databases & files 5

JavaScript utilities 13

Motion & animation 18

clampfunction

source, kept between min and max.

decayfunction

Keep moving at velocity, slowing down until it stops or meets the clamp.

delayfunction

Start after ms.

easingvalue

Cubic-bezier curves, the same data the CSS compiler emits for transition.

fadevalue

Enters from transparent, leaves to transparent.

interpolatefunction

source mapped from input to output, piece by piece: numbers, or hex colors channel by channel.

keyframesfunction

Stops by percentage, as CSS @keyframes: values for one prop make an animation, objects of props make an effect.

motionfunction

Create an instance-local motion value during component initialization.

parallelfunction

Effects at once: parallel(a, b) is a.and(b).

repeatfunction

Run animation again and again, forever by default.

scrollMotionfunction

Create, during component initialization, the motion values a Scroll or a List moves as it scrolls; give it to one view's motion prop.

sequencefunction

One after another.

sheetMotionfunction

Create, during component initialization, the motion values a Sheet moves; give it to one Sheet's motion prop.

slidevalue

Moves by distance (24 by default) in its direction: slide.up(12) enters rising 12 into place and leaves rising 12 away.

springfunction

With a spring; it keeps the velocity of what it interrupts.

staggerfunction

Effects at once, each each ms after the one before.

timingfunction

Along a curve: 300ms ease-in-out by default; a number is the duration.

zoomfunction

Grows from scale (0.85 by default) as it enters, shrinks to it as it leaves.

Gestures 10

Dialogs, sharing & feedback 6

Camera, audio & video 7

Permissions, location & notifications 4

App state & device settings 8

Accessibility & languages 2

Elements, events & styles 4

Extend with native code 5

App configuration 4

Test & debug 14

Types 1