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

Blurred List with Reanimated and Expo Blur

Tuesday, October 1, 2024
enzomanuelmangano
demos
motion-blur
An ongoing collection of React Native animations crafted with Reanimated, Gesture Handler, and Skia.
TypeScript
3.2k
296
A list component with motion blur effects and dynamic item addition.

What's This About?

This component creates a dynamic list interface with a sophisticated motion blur effect. When new items are added to the list, they appear with a smooth blur animation that enhances the sense of motion and depth. The component includes a floating action button for adding items and limits the number of visible items to maintain performance while preserving the visual effect.

Technical Implementation

The component uses:
Blur animations
Dynamic list rendering
Item generation
Visibility limiting
Floating action button

Usage

// Data structure type Item = { id: number; // Other item properties }; // Basic usage <BlurredList data={items} renderItem={({ item }) => <ListItem item={item} />} maxVisibleItems={3} />; // Add new items const addItem = () => { setItems((prevItems) => [ ...prevItems, generateRandomItem(prevItems.length + 1), ]); }; // Add button <PressableScale onPress={addItem}> <Entypo name="plus" size={40} color="white" /> </PressableScale>;

Unlock the beauty of React Native animations

Learn Reanimated, Gesture Handler & Skia with Reanimate.dev

Feedback on Motion Blur

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