We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51c8ead commit 5a5aeb4Copy full SHA for 5a5aeb4
libs/audio-manager.js
@@ -1,4 +1,4 @@
1
-import {NativeEventEmitter, NativeModules} from 'react-native';
+import {NativeEventEmitter, NativeModules, Platform} from 'react-native';
2
3
/**
4
* @author Enrique Viard.
@@ -23,6 +23,9 @@ const AudioManager = {
23
switchAudioInput(input) {
24
return RNAudioManager.switchAudioInput(input);
25
},
26
+ configure(mode) {
27
+ Platform.OS === 'ios' ? RNAudioManager.configure(mode) : null;
28
+ },
29
addEventListener(type, handler) {
30
if (!_eventHandlers.hasOwnProperty(type)) {
31
throw new Error('Event handler not found: ' + type)
0 commit comments