react-native-audio-jack
Getting started
$ npm install react-native-audio-jack --save
Mostly automatic installation
$ react-native link react-native-audio-jack
Important Installation Step For Android
The line of code below should be added to AndroidManifest.xml
for the audio jack listener to work.
Usage
; // Determine if audio jack is plugged inAudioJackManager; // Listener to listen for change in audio jack statusvar audioJackListener = AudioJackManager; // Later on.... (when component unmounts etc)audioJackListener;