mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
* To MMKV migration working * POC migrated font size settings * Moved settings to mmkv * Fix typos * Migrated contexts slice * Migrated app slice * POC instance emoji update * Migrated drafts * Migrated simple instance properties * All migrated! * Re-structure files * Tolerant of undefined settings * Can properly logging in and out including empty state
15 lines
431 B
TypeScript
15 lines
431 B
TypeScript
import { Audio, InterruptionModeAndroid, InterruptionModeIOS } from 'expo-av'
|
|
import log from './log'
|
|
|
|
const audio = () => {
|
|
log('log', 'audio', 'setting audio playback default options')
|
|
Audio.setAudioModeAsync({
|
|
interruptionModeIOS: InterruptionModeIOS.DoNotMix,
|
|
interruptionModeAndroid: InterruptionModeAndroid.DoNotMix,
|
|
playsInSilentModeIOS: true,
|
|
staysActiveInBackground: false
|
|
})
|
|
}
|
|
|
|
export default audio
|