Skip to content

Commit 8d2a9b9

Browse files
authored
Merge pull request #354 from davychhouk405/master
A quick fix for iOS release build.
2 parents c1069c5 + a58d4cf commit 8d2a9b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RNSound/RNSound.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ -(NSDictionary *)constantsToExport {
191191
player = [[AVAudioPlayer alloc] initWithContentsOfURL:fileNameUrl error:&error];
192192
}
193193
else {
194-
fileNameUrl = [NSURL fileURLWithPath:[fileName stringByRemovingPercentEncoding]];
194+
fileNameUrl = [NSURL URLWithString: fileName];
195195
player = [[AVAudioPlayer alloc]
196196
initWithContentsOfURL:fileNameUrl
197197
error:&error];

0 commit comments

Comments
 (0)