Sign in to Reactiive

Use your Google or Apple account.
Signing in subscribes you to the newsletter: new content and the occasional promotion. Unsubscribe at any time.
Skip to content

Family Alert Drawer with Reanimated

Tuesday, September 17, 2024
enzomanuelmangano
demos
alert-drawer
An ongoing collection of React Native animations crafted with Reanimated, Gesture Handler, and Skia.
TypeScript
3.2k
296
An animated alert component that smoothly expands from a button into a detailed confirmation dialog. Inspired by modern mobile UI patterns, it provides an engaging way to present important alerts to users.

What's This About?

This component transforms between two states: a compact button and an expanded alert card. When activated, it smoothly animates to reveal additional information, action buttons, and a close option, creating a seamless transition that maintains context.

Technical Implementation

The component uses interpolated animations for size, color, and position transitions. It features precise timing controls and smooth state management to ensure fluid transformations between the button and expanded states.

Usage

type AlertDrawerProps = { title: string; description: string; buttonLabel: string; onConfirm?: () => void; }; // Example usage <AlertDrawer title="Are you sure?" description="Confirmation message here" buttonLabel="Continue" onConfirm={() => console.log('Confirmed')} />;

Unlock the beauty of React Native animations

Learn Reanimated, Gesture Handler & Skia with Reanimate.dev

Feedback on Alert Drawer

Ideas, bugs, or anything that felt off: I read every message. For anything else, write to hello@reactiive.io.
Send feedback