npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@moeez12/react-native-audiowave

v0.1.4

Published

React Native audio waveform component with built-in playback controls, seek functionality, and real-time visualization. Supports both local and remote audio files.

Readme

React Native Audiowave

A high-performance React Native audio waveform component with built-in playback controls, seek functionality, and real-time visualization. Built with Turbo Native Modules for optimal performance.

Features

  • 🎵 Real-time Audio Visualization - Dynamic waveform rendering with customizable appearance
  • 🎮 Built-in Playback Controls - Play, pause, stop, and seek functionality
  • 📱 Cross-platform Support - Works seamlessly on both iOS and Android
  • Turbo Native Module - High-performance native implementation
  • 🎨 Customizable UI - Flexible styling and theming options
  • 📊 Audio Asset Resolution - Support for both local and remote audio files

Screenshots

Note: Add your sample UI screenshots here to showcase the component in action.

iOS Screenshot

iOS Screenshot

Android Screenshot

Android Screenshot

Installation

Prerequisites

  • React Native 0.71+
  • iOS 12.0+ / Android API 21+
  • For iOS: Xcode 14.0+

Install the package

yarn add @moeez12/react-native-audiowave
# or
npm install @moeez12/react-native-audiowave

iOS Setup

The following iOS frameworks need to be manually linked in Xcode:

  • CoreMedia.framework - Core media functionality
  • Accelerate.framework - High-performance vector and matrix operations
  • AudioToolbox.framework - Audio processing and playback
  • AVFoundation.framework - Audio/visual media handling

Manual Linking Steps:

  1. Open your iOS project in Xcode

    cd ios && open YourProject.xcworkspace
  2. Select your project target in the left sidebar

  3. Go to "General" tab → "Frameworks, Libraries, and Embedded Content"

  4. Click the "+" button and add each framework:

    • CoreMedia.framework
    • Accelerate.framework
    • AudioToolbox.framework
    • AVFoundation.framework
  5. Ensure "Embed & Sign" is selected for each framework

  6. Clean and rebuild your project

Android Setup

No additional configuration required for Android.

Usage

Basic Implementation

import React, { useState } from 'react';
import { View, StyleSheet } from 'react-native';
import AudioWaveform from '@moeez12/react-native-audiowave';

const App = () => {
  const [audioUrl, setAudioUrl] = useState('path/to/your/audio.mp3');

  return (
    <View style={styles.container}>
      <AudioWaveform
        audioUri={audioUrl}
        style={styles.waveform}
        onPlayStateChange={(state) => console.log('Playback:', state)}
      />
    </View>
  );
};

const styles = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent: 'center',
    alignItems: 'center',
    backgroundColor: '#f5f5f5',
  },
  waveform: {
    width: '100%',
    height: 200,
  },
});

Advanced Configuration

<AudioWaveform
  audioUri="https://example.com/audio.mp3"
  style={styles.waveform}
  waveformColor="#007AFF"
  backgroundColor="#FFFFFF"
  progressColor="#34C759"
  onPlayStateChange={(state) => console.log('Playback:', state)}
  onError={(error) => {
    console.error('Audio error:', error);
  }}
/>

API Reference

Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | audioUri | string | Required | URL or path to the audio file | | style | ViewStyle | {} | Custom styling for the waveform container | | waveformColor | string | #007AFF | Color of the waveform bars | | backgroundColor | string | #FFFFFF | Background color of the waveform | | progressColor | string | #34C759 | Color of the playback progress | | onPlayStateChange | function | - | Callback when playback state changes | | onPositionChange | function | - | Callback when position changes | | onError | function | - | Callback when audio errors occur |

Performance

This library is built with Turbo Native Modules, providing:

  • Faster startup times compared to legacy bridge architecture
  • Reduced memory usage through efficient native communication
  • Better performance for audio processing and visualization
  • Synchronous method calls where possible
  • Optimized native code generation

Troubleshooting

Common Issues

  1. Audio not playing on iOS

    • Check that audio files are in supported formats (MP3, WAV, M4A)
  2. Waveform not rendering

    • Verify audio file path/URL is correct
    • Check console for error messages
    • Ensure audio file is accessible
  3. Build errors on iOS

    • Clean build folder: cd ios && rm -rf build && cd ..
    • Reinstall pods: cd ios && pod install && cd ..

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support


Made with ❤️ by Moeez Ahmad