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

Grid List Layout Animation with Reanimated

Wednesday, January 11, 2023
enzomanuelmangano
demos
animated-grid-list
An ongoing collection of React Native animations crafted with Reanimated, Gesture Handler, and Skia.
TypeScript
3.2k
296
A dynamic grid-list component that smoothly transitions between grid and list layouts. Features fluid animations for both layout changes and content visibility, creating a polished user experience.

What's This About?

This component provides a seamless way to display content in both grid and list views. Users can toggle between layouts with a floating button, and the content smoothly animates between states. Images resize and reposition while text fades in and out appropriately.

Technical Implementation

The component uses layout animations for smooth transitions and handles image aspect ratios dynamically. It features fade animations for text content and supports custom rendering of items in both layouts.

Usage

type Item = { img: string; title: string; subtitle: string; }; // Example usage <AnimatedLayoutList data={items} layout="grid" renderItem={(item, index, isExpanded) => ( // Custom render implementation )} />

Unlock the beauty of React Native animations

Learn Reanimated, Gesture Handler & Skia with Reanimate.dev

Feedback on Animated Grid List

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