In step 4, we initialized options on the Audio component once the app finished loading via the componentDidMount method. The Audio component's setAudioModeAsync method takes an option object as its only parameter.
Let's review some of the options we used in this recipe:
- interruptionModeIOS and interruptionModeAndroid set how the audio in your app should interact with the audio from other applications on the device. We used the Audio component's INTERRUPTION_MODE_IOS_DO_NOT_MIX and INTERRUPTION_MODE_ANDROID_DO_NOT_MIX enums, respectively, to declare that our app's audio should interrupt any other applications playing audio.
- playsInSilentModeIOS is a Boolean that determines whether your app should play audio when the device ...