@umituz/react-native-sound 1.2.4 → 1.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umituz/react-native-sound",
3
- "version": "1.2.4",
3
+ "version": "1.2.6",
4
4
  "description": "Universal sound playback and caching library for React Native apps",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -27,10 +27,10 @@
27
27
  "peerDependencies": {
28
28
  "react": ">=18.2.0",
29
29
  "react-native": ">=0.74.0",
30
- "expo-av": ">=16.0.0"
30
+ "expo-av": ">=16.0.0",
31
+ "expo-file-system": ">=18.0.0"
31
32
  },
32
33
  "dependencies": {
33
- "expo-file-system": "~18.0.0",
34
34
  "zustand": "^5.0.2"
35
35
  },
36
36
  "devDependencies": {
@@ -49,4 +49,4 @@
49
49
  "README.md",
50
50
  "LICENSE"
51
51
  ]
52
- }
52
+ }
@@ -1,4 +1,4 @@
1
- import { Audio, AVPlaybackStatus, AVPlaybackStatusSuccess } from 'expo-av';
1
+ import { Audio, AVPlaybackStatus, AVPlaybackStatusSuccess, InterruptionModeIOS, InterruptionModeAndroid } from 'expo-av';
2
2
  import { useSoundStore } from './store';
3
3
  import { PlaybackOptions, SoundSource } from './types';
4
4
 
@@ -17,6 +17,8 @@ class AudioManager {
17
17
  staysActiveInBackground: false,
18
18
  shouldDuckAndroid: true,
19
19
  playThroughEarpieceAndroid: false,
20
+ interruptionModeIOS: InterruptionModeIOS.DuckOthers,
21
+ interruptionModeAndroid: InterruptionModeAndroid.DuckOthers,
20
22
  });
21
23
  } catch (error) {
22
24
  if (__DEV__) console.warn('Failed to configure audio session', error);