-
Notifications
You must be signed in to change notification settings - Fork 780
Open
Labels
Description
🪲 Description
I want to use this library with my Expo project but I can't import sound files. Docs says Expo: Compatible with custom development builds (not Expo Go) and I'm using development build.
🪲 What have you tried?
I tried to import it like this with different path combinations but always ends with {"code": -1, "message": "resource not found"}
export const beepSound = new Sound('assets/sounds/beep.mp3', '', error => {
if (error) {
console.error('Failed to load beep sound:', error)
}
})
Is your issue with...
- iOS
- Android
- Windows
Are you using...
- React Native CLI (e.g.
react-native run-android) - Expo
- Other: (please specify)
Which versions are you using?
- React Native Sound: 0.13.0
- React Native: 0.81.5
- Expo: 54.0.23