Expandable Mini Player with Reanimated
Tuesday, October 29, 2024
demos
expandable-mini-player
An ongoing collection of React Native animations crafted with Reanimated, Gesture Handler, and Skia.
TypeScript
3.2k
296
A music player component that expands from a mini player to a full screen view.
What's This About?
This component creates a music player that:
Transitions between mini and full view
Shows track information
Includes playback controls
Handles gesture interactions
Maintains state during transitions
Usage
type MiniPlayerProps = {
track: {
title: string;
artist: string;
artwork: string;
};
isPlaying?: boolean;
onPlayPause?: () => void;
};
// Basic usage
<ExpandableMiniPlayer
track={{
title: 'Track Name',
artist: 'Artist Name',
artwork: 'artwork-url',
}}
isPlaying={false}
onPlayPause={() => {
// Handle play/pause
}}
/>;
Unlock the beauty of React Native animations
Learn Reanimated, Gesture Handler & Skia with Reanimate.dev
Feedback on Expandable Mini Player
Ideas, bugs, or anything that felt off: I read every message. For anything else, write to hello@reactiive.io.
Send feedback