Use the react-native-audio recording to give the following error in the address given in react-native-sound:

Here's my code:
var sound = new Sound(this.state.audioPath, Sound.MAIN_BUNDLE, (error) => {
if (error) {
console.log('failed to load the sound', error);
return
}else{
console.log('duration in seconds: ' + sound.getDuration() + 'number of channels: ' + sound.getNumberOfChannels());
sound.play((success) => {
if (success) {
console.log('successfully finished playing');
} else {
console.log('playback failed due to audio decoding errors');
}
});
}
});
this.state.audioPath : /var/mobile/Containers/Data/Application/C5A0D128-16CF-4713-AC8C-056C37F4DD26/Documents/audio1494239940000.aac
It would be really helpful if you post a comment on how did you solve the problem, so others can find it
Just wrap basePath in encodeURIComponent and everything will work
var SOUND_PRESS = new Sound(getSoundName('sound_press'), encodeURIComponent(Sound.MAIN_BUNDLE));
Most helpful comment
It would be really helpful if you post a comment on how did you solve the problem, so others can find it