Skip to content

Commit

Permalink
fix fetchAssetsWithLocalIdentifiers call
Browse files Browse the repository at this point in the history
  • Loading branch information
allie-wake-up committed Aug 15, 2019
1 parent 4e3b4b7 commit 026b301
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RNFSManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,7 @@ + (BOOL)requiresMainQueueSetup
NSURL* url = [NSURL URLWithString:imageUri];
PHFetchResult *results = nil;
if ([url.scheme isEqualToString:@"ph"]) {
results = [PHAsset fetchAssetsWithLocalIdentifiers:@[url] options:nil];
results = [PHAsset fetchAssetsWithLocalIdentifiers:@[[imageUri substringFromIndex: 5]] options:nil];
} else {
results = [PHAsset fetchAssetsWithALAssetURLs:@[url] options:nil];
}
Expand Down

0 comments on commit 026b301

Please sign in to comment.