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

react-native-switch-audio-output

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-switch-audio-output

The library for switch audio output source in your device for React Native

latest
Source
npmnpm
Version
1.1.2
Version published
Weekly downloads
54
42.11%
Maintainers
1
Weekly downloads
 
Created
Source

react-native-switch-audio-output

The library for switch audio output source in your device for React Native

Getting started

$ npm install react-native-switch-audio-output --save

If you are using React Native >= 0.60, install CocoaPods dependency

cd ios && pod install && cd ..

$ react-native link react-native-switch-audio-output && cd ios && pod install && cd ..

Usage

import RNSwitchAudioOutput from 'react-native-switch-audio-output';

// check the audio source is speaker or not (Android only) return boolean
RNSwitchAudioOutput.isSpeakerphoneOn(res => {

});

/* 
switch audio source to speaker or headphone
*/

// switch to speakerphone
RNSwitchAudioOutput.selectAudioOutput(RNSwitchAudioOutput.AUDIO_SPEAKER)

// switch to headphone
RNSwitchAudioOutput.switchAudioOutput(RNSwitchAudioOutput.AUDIO_HEADPHONE)

Keywords

react-native

FAQs

Package last updated on 31 Oct 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