Commit 3b0d4592 authored by Ash Mishra's avatar Ash Mishra
Browse files

Fix for files that are stored in the Documents folder on iOS (and not as resources in the JS app)

parent f45d6a2c
Loading
Loading
Loading
Loading
+1 −1
Changes for ios/Video/RCTVideo.m: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -370,7 +370,7 @@ static int const RCTVideoUnset = -1;
}

- (NSURL*) urlFilePath:(NSString*) filepath {
  if ([filepath containsString:@"file://"]) {
  if ([filepath containsString:@"file://"] && ![filepath containsString:@"/Documents/"]) {
    return [NSURL URLWithString:filepath];
  }