react-native-beep-sounds

A very lite module to play system sounds and beep for react-native apps (no sound files)


Keywords
react-native, system sounds
License
MIT-enna
Install
npm install react-native-beep-sounds@0.0.5

Documentation

react-native-a-sounds

A very lite module to play system sounds and beep for react-native apps (no sound files)

Original Auther

Thanks to trietho

https://github.com/trietho/react-native-a-beep

Install

using npm:

npm install "react-native-beep-sounds"

or using yarn

yarn add "react-native-beep-sounds"

Usage

import RNBeep from 'react-native-beep-sounds';

Examples:

<Button onPress={ () => {RNBeep.beep()} } title="Beep Success"></Button>
<Button onPress={ () => {RNBeep.beep(false)} } title="Beep Fail"></Button>
<Button onPress={ () => {RNBeep.PlaySysSound(RNBeep.AndroidSoundIDs.TONE_CDMA_ABBR_ALERT)} } title="Beep Android Custom"></Button>
<Button onPress={ () => {RNBeep.PlaySysSound(41)} } title="Beep Something"></Button>
<Button onPress={ () => {RNBeep.PlaySysSound(RNBeep.iOSSoundIDs.AudioToneBusy)} } title="Beep iOS Custom"></Button>

Happy Beep!

FREE!