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