Skip to content
🎶Generate sine waves with frequency and amplitude (iOS only)
Branch: master
Clone or download
Latest commit b8a86a0 Jan 28, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
windows very basic tone generation Jun 20, 2018
.gitattributes very basic tone generation Jun 20, 2018
.gitignore very basic tone generation Jun 20, 2018 Update Jan 28, 2019
package.json change AV category to play & record Jun 24, 2018

react-native-tone 🎶

Simple library for playing tones in React Native (iOS only). Bridge of

Getting started

yarn add react-native-tone


npm install react-native-tone --save
react-native link react-native-tone


Generates simple sine wave, specify a frequency and amplitude. Play sound indefinitely or for a specified time interval.

import RNTone from 'react-native-tone';

// In constructor
RNTone.initWithChannels(numChannels, volume) // initalize
// volume ranges from 0.01-0.25 // play tone, indefinitely
RNTone.playForDuration(seconds) // play specified time interval (in seconds)
RNTone.stop() // stop tone

// Example
RNTone.initWithChannels(2, 0.25) // initalize two channels at full volume
RNTone.setChannelFrequencies([440, 220]) // A4 and A3
RNTone.playForDuration(0.5) // play for half a second


  • Remove clicking sound at beginning and end of tone

P.S. I'm still still learning Obj-C and bridging, so if anyone would like to help with this module they are very welcome!

You can’t perform that action at this time.