diff --git a/Plugins/NativeShare/iOS/NativeShare.mm b/Plugins/NativeShare/iOS/NativeShare.mm index 5825480..73e485c 100644 --- a/Plugins/NativeShare/iOS/NativeShare.mm +++ b/Plugins/NativeShare/iOS/NativeShare.mm @@ -78,11 +78,7 @@ - (NSString *)activityViewController:(UIActivityViewController *)activityViewCon for( int i = 0; i < filesCount; i++ ) { NSString *filePath = [NSString stringWithUTF8String:files[i]]; - UIImage *image = [UIImage imageWithContentsOfFile:filePath]; - if( image != nil ) - [items addObject:image]; - else - [items addObject:[NSURL fileURLWithPath:filePath]]; + [items addObject:[NSURL fileURLWithPath:filePath]]; } UIActivityViewController *activity = [[UIActivityViewController alloc] initWithActivityItems:items applicationActivities:nil];