diff --git a/index.js b/index.js index 61609fd..f15fdb3 100644 --- a/index.js +++ b/index.js @@ -45,7 +45,11 @@ export default { }, loadAsset: (asset: number) => { - RNSoundPlayer.loadUrl(resolveAsset(asset).uri); + if (!(__DEV__) && Platform.OS === "android") { + RNSoundPlayer.loadSoundFile(resolveAsset(asset).uri, ''); + } else { + RNSoundPlayer.loadUrl(resolveAsset(asset).uri); + } }, onFinishedPlaying: (callback: (success: boolean) => any) => {