diff options
Diffstat (limited to 'modules/expo-bluesky-swiss-army/src')
3 files changed, 16 insertions, 0 deletions
diff --git a/modules/expo-bluesky-swiss-army/src/PlatformInfo/index.native.ts b/modules/expo-bluesky-swiss-army/src/PlatformInfo/index.native.ts index e05f173d6..949bd78a2 100644 --- a/modules/expo-bluesky-swiss-army/src/PlatformInfo/index.native.ts +++ b/modules/expo-bluesky-swiss-army/src/PlatformInfo/index.native.ts @@ -1,3 +1,4 @@ +import {Platform} from 'react-native' import {requireNativeModule} from 'expo-modules-core' const NativeModule = requireNativeModule('ExpoPlatformInfo') @@ -5,3 +6,8 @@ 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) +} diff --git a/modules/expo-bluesky-swiss-army/src/PlatformInfo/index.ts b/modules/expo-bluesky-swiss-army/src/PlatformInfo/index.ts index 9b9b7fc0c..2665748b0 100644 --- a/modules/expo-bluesky-swiss-army/src/PlatformInfo/index.ts +++ b/modules/expo-bluesky-swiss-army/src/PlatformInfo/index.ts @@ -3,3 +3,7 @@ import {NotImplementedError} from '../NotImplemented' export function getIsReducedMotionEnabled(): boolean { throw new NotImplementedError() } + +export function setAudioMixWithOthers(mixWithOthers: boolean): void { + throw new NotImplementedError({mixWithOthers}) +} diff --git a/modules/expo-bluesky-swiss-army/src/PlatformInfo/index.web.ts b/modules/expo-bluesky-swiss-army/src/PlatformInfo/index.web.ts index c7ae6b7cd..917c97396 100644 --- a/modules/expo-bluesky-swiss-army/src/PlatformInfo/index.web.ts +++ b/modules/expo-bluesky-swiss-army/src/PlatformInfo/index.web.ts @@ -1,6 +1,12 @@ +import {NotImplementedError} from '../NotImplemented' + export function getIsReducedMotionEnabled(): boolean { if (typeof window === 'undefined') { return false } return window.matchMedia('(prefers-reduced-motion: reduce)').matches } + +export function setAudioMixWithOthers(mixWithOthers: boolean): void { + throw new NotImplementedError({mixWithOthers}) +} |