Examples
Live previews run the actual library through React Native Web. Examples that need native line measurements use an iOS recording.
These examples use the current public API. Run them in a React Native app after installation. Use each preview to inspect the motion and replay it alongside the code.
Start with a preset
editorialRise()React Native WebPresets are recipe factories imported from the /presets subpath. Create the component once outside render.
See Presets for softWave() and gentleEmphasis().
Word reveal with replay
play() / replay() / reset() / stop()React Native Webstagger(0.04) sets starts 40ms apart; duration: 360 controls each token's motion in milliseconds. Mount autoplay remains enabled with controls. See Playback for external progress and the full command set.
Reveal rendered lines
overlayText() + lineReveal()iOS recordingUse native rendered lines when a title should wrap with the available width. Do not add a splitter to this recipe.
overlayText() measures the paragraph after width, font, font scale, and shaping are applied. lines() only splits explicit newline characters. See Renderers.
Keep progress while the paragraph reflows
overlayText() · width reflowiOS recordingThe iOS recording uses a long English paragraph with no explicit newlines. In the native example, Narrow and Wide switch between React Native layout widths of 220 and 320. Progress controls hold progress at 0.5 across the width change, then replay at each width so you can inspect the masks against the newly measured source paragraph.
Typewriter with fixed layout
typewriter()React Native WebThe complete phrase reserves its space from the start. Each visible token is revealed at its timeline start; spaces and hard newlines keep their space without taking a delay slot. duration: 0 makes the per-token reveal instant. Typewriter requires nativeText() and does not provide a cursor, streaming, or exact single-Text wrapping.
For a different phrase that must type from the beginning, remount it with a new React key. Appending text is not a streaming API. See Effects for composition and Segmentation for grapheme fallback limits.
Run the repository example
From the repository root, use the pinned Node and pnpm versions in .nvmrc and package.json:
Native build commands require the platform's normal development tools. Browser rendering is useful for inspection but is not evidence of iOS or Android layout and performance.
The example groups demos under Presets, Splitters, Effects, Timelines, Layout, and Playback. Try Line Reveal, Typewriter Controls, Controlled Progress, and Renderer Performance to inspect the corresponding APIs. See Performance for how to record measurements.
