blob: 949bd78a285edf57c43f38243b45b930a14f1d63 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import {Platform} from 'react-native'
import {requireNativeModule} from 'expo-modules-core'
const NativeModule = requireNativeModule('ExpoPlatformInfo')
export function getIsReducedMotionEnabled(): boolean {
return NativeModule.getIsReducedMotionEnabled()
}
export function setAudioMixWithOthers(mixWithOthers: boolean): void {
if (Platform.OS !== 'ios') return
NativeModule.setAudioMixWithOthers(mixWithOthers)
}
|