Skip to content

Commit 87b32c5

Browse files
committed
fix: sound in silent mode for audio attachments
1 parent f264bf0 commit 87b32c5

File tree

1 file changed

+3
-0
lines changed
  • package/expo-package/src/handlers

1 file changed

+3
-0
lines changed

package/expo-package/src/handlers/Sound.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ import { AudioComponent } from '../optionalDependencies/Video';
33
export const Sound = {
44
initializeSound: AudioComponent
55
? async (source, initialStatus, onPlaybackStatusUpdate: (playbackStatus) => void) => {
6+
await AudioComponent.setAudioModeAsync({
7+
playsInSilentModeIOS: true,
8+
});
69
const { sound } = await AudioComponent.Sound.createAsync(
710
source,
811
initialStatus,

0 commit comments

Comments
 (0)