Expanding Sheet Generation Preview Reveal
Tapping FINISH expands the button and sheet top on a critically damped spring into a blue Preparing screen. A dashed placeholder card bounces, then a soft white circle reveals ALL SET as it becomes a teal preview with fanned cards behind and a DONE button.
export function Example() {
const progress = useSharedValue(0);
…
Agent prompt
Add the Now In Code component "expanding-sheet-generation-preview-reveal" to this project. The full source is attached at the end of this prompt. Put the files under components/expanding-sheet-generation-preview-reveal/, install the listed dependencies with `npx expo install`, and render it on a route I can open. Keep the timing and easing values documented in the source comments. Replace the sample copy and artwork with content from my app, or leave placeholders and list what I still need to supply. === Source files are attached here for paid plans ===
Details
- Platforms
- iOS, Android
- Requires
- Expo SDK 54+
- Access
- Pro
- Updated
- 26 Oct 2026
- License
- Unlimited commercial projects
- Original design
- @craft_120 on X
Are you the designer? Ask us to change or remove this.
Add pieces from the terminal or let your agent fetch them. Until then, Copy prompt does the same job. Docs
What it does
A bottom sheet that moves through three states. The setup state has a bold title, a pale blue note box, two dashed rows and a wide FINISH button. Tapping it makes the button grow into the whole sheet, which rises and becomes a Preparing state with a dashed placeholder card and a STOP button. When generation completes, the sheet grows taller and shows ALL SET with a preview card stacked in front of two cards behind it and a DONE button. STOP reverses the expansion and drops the placeholder, and DONE slides the sheet away, after which a fresh setup sheet springs up. An automatic demo loops through the whole sequence.
How it's built
A shared timeline core computes each frame, and the React Native component draws with react-native-svg and a masked view, advancing on a requestAnimationFrame loop. The button's four edges, corner radius, bottom lip and the sheet's top edge all follow one critically damped spring, which is what makes the button read as becoming the sheet. Titles use an overdamped spring from the button label's position, and text is placed line by line using the system rounded face.
Good for
- An AI image or content generation flow with a processing and a done state
- Any confirm action that should open into a progress sheet
- Checkout or export flows that end in a preview with a single dismiss button
Dependencies
@react-native-masked-view/masked-viewreact-native-svgreact-native