Animated Section List with Reanimated ๐
Friday, June 2, 2023
demos
animated-indicator-list
An ongoing collection of React Native animations crafted with Reanimated, Gesture Handler, and Skia.
TypeScript
3.2k
296
A sophisticated list component with an animated header indicator that smoothly tracks scroll position. Features section headers that respond to both scroll and touch interactions, creating an intuitive navigation experience.
What's This About?
This component implements a sectioned list with an animated indicator that follows the current section. As users scroll through the list or tap on section headers, the indicator smoothly animates to highlight the active section, providing clear visual feedback about the current position in the list.
Technical Implementation
The component uses shared values to track scroll position and header layouts. It features precise measurements for header positioning, smooth animations for the indicator, and optimized scroll performance with event throttling.
Usage
type HeaderListItem = {
header: string;
type: 'header';
};
type ListItem = {
id: string;
type: 'item';
title: string;
};
// Example usage
<AnimatedIndicatorList />;
Unlock the beauty of React Native animations
Learn Reanimated, Gesture Handler & Skia with Reanimate.dev
Feedback on Animated Indicator List
Ideas, bugs, or anything that felt off: I read every message. For anything else, write to hello@reactiive.io.
Send feedback