New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@gemedico/react-native-sounds

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gemedico/react-native-sounds

react-native-sounds

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

React-Native Sounds

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

NPM Version NPM Downloads

Installation

This is a Node.js module available through the npm registry.

$ npm install @gemedico/react-native-sounds

Mostly automatic installation

$ react-native link @gemedico/react-native-sounds

IOS

$ cd ios
$ pod install

Usage

import RNSounds from '@gemedico/react-native-sounds';

Examples:

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

License

MIT

Keywords

react native

FAQs

Package last updated on 28 Nov 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts