about summary refs log tree commit diff
path: root/modules/expo-bluesky-swiss-army/src/PlatformInfo/index.native.ts
diff options
context:
space:
mode:
authorHailey <me@haileyok.com>2024-08-09 03:05:12 -0700
committerGitHub <noreply@github.com>2024-08-09 11:05:12 +0100
commitcb574b7be3757c25063957ff561bae6f1be7577f (patch)
tree5a351be0e58bf36be131af489d83903e7e65e142 /modules/expo-bluesky-swiss-army/src/PlatformInfo/index.native.ts
parenta4f0c9c753ec8844eda094080d81fbba566de7df (diff)
downloadvoidsky-cb574b7be3757c25063957ff561bae6f1be7577f.tar.zst
[Videos] Add iOS function to set `AVAudioSession.CategoryOptions` to `.mixWithOthers` (#4905)
* audio mixing pref

* lint
Diffstat (limited to 'modules/expo-bluesky-swiss-army/src/PlatformInfo/index.native.ts')
-rw-r--r--modules/expo-bluesky-swiss-army/src/PlatformInfo/index.native.ts6
1 files changed, 6 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)
+}