Waveform Scrubber with React Native Reanimated ๐ต
Wednesday, May 10, 2023
demos
audio-player
An ongoing collection of React Native animations crafted with Reanimated, Gesture Handler, and Skia.
TypeScript
3.2k
296
A sleek waveform-based audio scrubber that provides an intuitive way to navigate through audio content. Features a responsive waveform visualization with smooth scrubbing interactions and real-time time display.
What's This About?
This component creates an interactive audio waveform display where users can scrub through the audio content. The waveform responds to touch gestures, providing visual feedback as users navigate through the track, while a time display updates in real-time.
Technical Implementation
The component uses gesture handling for smooth scrubbing interactions and derived values for time calculations. It features a dynamic waveform visualization that responds to the current playback position and user interaction state.
Usage
type WaveformScrubberProps = {
waveformSamples: number[]; // Array of amplitude values
};
// Example usage
<WaveformScrubber
waveformSamples={[0.5, 0.8, 0.3, ...]} // Amplitude values between 0 and 1
/>
Unlock the beauty of React Native animations
Learn Reanimated, Gesture Handler & Skia with Reanimate.dev
Feedback on Audio Player
Ideas, bugs, or anything that felt off: I read every message. For anything else, write to hello@reactiive.io.
Send feedback