From a18fe1b4b11caf2c84cf8c5528b02f08622cf91a Mon Sep 17 00:00:00 2001 From: Ludovic Date: Tue, 6 Jun 2017 12:20:05 +0200 Subject: [PATCH] Fin not showing preview File path on iOS use fileURLWithPath instead of URLWithString --- ios/ReactNativeQuickLook/RNQuickLookView.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/ReactNativeQuickLook/RNQuickLookView.m b/ios/ReactNativeQuickLook/RNQuickLookView.m index 3bbfbe6..2d89728 100644 --- a/ios/ReactNativeQuickLook/RNQuickLookView.m +++ b/ios/ReactNativeQuickLook/RNQuickLookView.m @@ -67,7 +67,7 @@ - (NSInteger)numberOfPreviewItemsInPreviewController:(QLPreviewController *)cont } - (id )previewController:(QLPreviewController *)controller previewItemAtIndex:(NSInteger)index { - return [NSURL URLWithString:_url]; + return [NSURL fileURLWithPath:_url]; } #pragma mark - QLPreviewControllerDelegate