Waveform Scrubber with React Native Reanimated ๐ŸŽต

Wednesday, May 10, 2023
reanimated
enzomanuelmangano
demosaudio-player

An ongoing collection of React Native animations crafted with Reanimated, Gesture Handler, and Skia.

TypeScript1.7k190
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

Audio Player - Feedback

Share Your Thoughts

I value a lot your feedback! Help me improve by sharing your thoughts, suggestions, or reporting any issues you encounter. If you need assistance, send me an email at hello@reactiive.io