We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c1069c5 + a58d4cf commit 8d2a9b9Copy full SHA for 8d2a9b9
RNSound/RNSound.m
@@ -191,7 +191,7 @@ -(NSDictionary *)constantsToExport {
191
player = [[AVAudioPlayer alloc] initWithContentsOfURL:fileNameUrl error:&error];
192
}
193
else {
194
- fileNameUrl = [NSURL fileURLWithPath:[fileName stringByRemovingPercentEncoding]];
+ fileNameUrl = [NSURL URLWithString: fileName];
195
player = [[AVAudioPlayer alloc]
196
initWithContentsOfURL:fileNameUrl
197
error:&error];
0 commit comments