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

Smooth Dropdown Animation with Reanimated ๐Ÿ‘‡

Wednesday, April 5, 2023
enzomanuelmangano
demos
smooth-dropdown
An ongoing collection of React Native animations crafted with Reanimated, Gesture Handler, and Skia.
TypeScript
3.2k
296
A smooth animated dropdown menu with icons and custom options.

What's This About?

This component creates an elegant dropdown menu with smooth animations and icon support. Each option in the dropdown can have an associated icon and label, and the component includes a customizable header. The implementation features smooth expand/collapse animations and selection handling, making it suitable for navigation menus or option selectors.

Technical Implementation

The component uses:
Animated transitions
Icon integration
Option selection
Custom header
Event handling

Usage

// Options configuration const options = [ { label: 'Charts', iconName: 'barschart' }, { label: 'Book', iconName: 'book' }, { label: 'Calendar', iconName: 'calendar' }, { label: 'Camera', iconName: 'camera' } ]; // Basic usage <SmoothDropdown /> // Dropdown with custom options <Dropdown options={options} header={{ label: 'Header', iconName: 'ellipsis1' }} onPick={(value) => { console.log('Selected:', value); }} /> // Types type Option = { label: string; iconName: string; }; type DropdownProps = { options: Option[]; header: Option; onPick: (value: string) => void; };

Unlock the beauty of React Native animations

Learn Reanimated, Gesture Handler & Skia with Reanimate.dev

Feedback on Smooth Dropdown

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