react-native-tone-android

1.0.2 • Public • Published

react-native-tone-android

Android only library. Simply plays a one time Tone with specific frequency and duration.

Getting started

$ yarn add react-native-tone-android

Usage

import Tone from "react-native-tone-android";
 
function somefunction() {
  const frequency = 4000; //Hz
  const duration = 50; // ms
 
  Tone.play(frequency, duration);
}

Package Sidebar

Install

npm i react-native-tone-android

Weekly Downloads

2

Version

1.0.2

License

MIT

Unpacked Size

11.1 kB

Total Files

9

Last publish

Collaborators

  • guilherme.perotta