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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@kaannn/react-native-waveform

v0.1.4

Published

Create native waveforms

Readme

React Native Audio Wave

A native waveform visualization library for React Native applications. This package provides a customizable audio waveform component that can visualize audio files or sample data.

npm version license

Platform Support

  • [x] Android (https://github.com/massoudss/waveformSeekBar) (Will be change to Reanimated 4)
  • [ ] iOS (Planned)
  • [ ] Web (Planned)

Installation

npm install @kaannn/react-native-waveform

or

yarn add @kaannn/react-native-waveform

Features

  • Display waveform visualization for audio files
  • Support for local and remote audio files
  • Customizable appearance (colors, dimensions, etc.)
  • Progress tracking for audio playback
  • Direct sample data input support

Usage

import AudioWaveView  from '@kaannn/react-native-waveform';

// Usage with all props
<AudioWaveView
  style={{ flex: 1,width: '100%',height: '100%' }}
  progress={audio.progress}
  maxProgress={audio.lenght}
  waveWidth={18}
  waveGap={2}
  waveMinHeight={25}
  waveCornerRadius={8}
  waveBackgroundColor="#E0E0E0"
  waveProgressColor="#2196F3"
  markerWidth={2}
  markerColor="#FF5722"
  markerTextColor="#000000"
  markerTextSize={10}
  markerTextPadding={2}
  audioSource={audioUrl}
/>

// Basic usage with a local audio file
<AudioWaveView
  style={{ width: '100%', height: 100 }}
  audioFileUri="file:///path/to/your/audio/file.mp3"
  progress={50} // 0-100 value representing playback progress
/>

// Using with remote URL
<AudioWaveView
  style={{ width: '100%', height: 100 }}
  audioFileUri="https://example.com/audio.mp3"
  waveProgressColor="#FF5500"
  waveBackgroundColor="#DDDDDD"
/>

// Using with sample data directly
<AudioWaveView
  style={{ width: '100%', height: 100 }}
  samples={[23, 56, 22, 99, 65, 41, 10, 80, 65, 32, 44, 29, 10, 85, 93, 42]}
/>

Props

| Prop | Type | Default | Description | | ------------------- | ------------- | --------- | --------------------------------------------- | | audioFileUri | string | - | Path to audio file (local or remote URL) | | samples | number[] | - | Array of sample values to display as waveform | | progress | number | 0 | Current progress (0-100) | | maxProgress | number | 100 | Maximum progress value | | visibleProgress | number | - | Visible progress amount | | waveWidth | number | 5 | Width of each wave bar | | waveGap | number | 2 | Gap between wave bars | | waveMinHeight | number | 5 | Minimum height of wave bars | | waveCornerRadius | number | 2 | Corner radius of wave bars | | wavePaddingTop | number | - | Top padding for wave view | | wavePaddingBottom | number | - | Bottom padding for wave view | | wavePaddingLeft | number | - | Left padding for wave view | | wavePaddingRight | number | - | Right padding for wave view | | waveBackgroundColor | string/number | '#LTGRAY' | Color of non-progressed wave bars | | waveProgressColor | string/number | '#BLUE' | Color of progressed wave bars | | markerWidth | number | - | Width of progress marker | | markerColor | string/number | '#GREEN' | Color of progress marker | | markerTextSize | number | - | Size of marker text | | markerTextColor | string/number | '#RED' | Color of marker text | | markerTextPadding | number | - | Padding for marker text |

Roadmap

  • iOS Support
    • Implement native iOS waveform visualization
    • Match feature parity with Android implementation
  • Web Support
    • Create web-compatible implementation
  • Performance Improvements
    • Implement Reanimated 4 for smoother animations
    • Optimize waveform rendering for large audio files
  • Enhanced Features
    • Add audio playback controls
    • Support for real-time waveform visualization
    • Add audio recording with live waveform
    • Support for different waveform styles
  • Documentation
    • Comprehensive API documentation
    • More usage examples
    • Demo app with various use cases

Development

To develop and test the library locally:

  1. Clone the repository

    git clone https://github.com/kagantemizkan/react-native-audio-wave.git
    cd react-native-audio-wave
  2. Install dependencies

    yarn install
  3. Run the example app

    yarn example start
    yarn example android

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT