JSPM

  • Created
  • Published
  • Downloads 855
  • Score
    100M100P100Q96075F

React Native library for simple audio recording. Wraps AVAudioRecorder/Player.

Package Exports

  • react-native-audio

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-native-audio) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

react-native-audio

An audio recording and playback library for react-native.

This is an experimental release. It handles basic recording and playback of the recording only. No settings besides the location of the audio file.

Installation

  1. npm install react-native-audio
  2. In the XCode's "Project navigator", right click on project's name ➜ Add Files to <...>
  3. Go to node_modulesreact-native-audio 4 Select the Audio*Manager.* files

Sample App

In the AudioExample directory:

  1. npm install
  2. open AudioExample.xcodeproj
  3. Run

TODO

  • Documentation
  • Allow setting audio properties
  • Convert JS api to a react component
  • Store audio to media library
  • Error handling over the js bridge
  • Recommend react-native-video (media) for playback

Thanks to Brent Vatne, Johannes Lumpe, Kureev Alexey and the React Native community for assistance.

Progress tracking code borrowed from https://github.com/brentvatne/react-native-video.