Skip to content

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

Notifications You must be signed in to change notification settings

despinozakusjanovic/react-native-a-beep-two

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-native-a-beep

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

Sponsor by

Go Noter app - Group travel and expenses assistant!

Install

npm install "react-native-a-beep"

(RN < 0.60) Mostly automatic installation

$ react-native link react-native-a-beep

Usage

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

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!

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 72.5%
  • Java 17.0%
  • Ruby 6.0%
  • Objective-C 4.5%