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

Dynamic FlatList with React Native Reanimated ๐Ÿ‘‡

Wednesday, February 7, 2024
reanimated
gesture-handler
enzomanuelmangano
demos
email-demo
An ongoing collection of React Native animations crafted with Reanimated, Gesture Handler, and Skia.
TypeScript
3.2k
296

Email Demo

An email list interface with "delete and restore" functionality. Features gradient overlays and shake animations.

What's This About?

This component creates an email interface with:
Delete and restore actions
Shake feedback for invalid actions
Gradient overlays for depth
Safe area handling

Technical Implementation

The component uses:
Reanimated for list animations
Shared values for state management
Custom hooks for shake animations
Linear gradients for visual effects
List virtualization for performance

Usage

type EmailItem = { id: string; title: string; content: string; }; // Basic usage <EmailDemo />; // List item configuration const ITEM_HEIGHT = 100; const ITEM_MARGIN = 10; // Custom list implementation <InteractiveList data={items} itemHeight={ITEM_HEIGHT + ITEM_MARGIN} amountToShift={erasedItems} renderItem={({ item }) => <ListItem item={item} itemHeight={ITEM_HEIGHT} />} />;

Unlock the beauty of React Native animations

Learn Reanimated, Gesture Handler & Skia with Reanimate.dev

Feedback on Email Demo

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