You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have successfully implemented react-native-share-extension into my IOS project. I got image path and its extension while sharing the image from photos app but I cant get the path if I share the video file from Photos app?
I have successfully implemented react-native-share-extension into my IOS project. I got image path and its extension while sharing the image from photos app but I cant get the path if I share the video file from Photos app?
const {type, value} = await ShareExtension.data();
ShareExtension.m FIle:
if([videoProvider hasItemConformingToTypeIdentifier:VIDEO_IDENTIFIER]) {
videoProvider = provider;
//index += 1;
[videoProvider loadItemForTypeIdentifier:VIDEO_IDENTIFIER options:nil completionHandler:^(id item, NSError *error) {
NSURL *url = (NSURL *)item;
index += 1;
[itemArray addObject: @{
@"type": @"movie/mp4",
@"value": [url absoluteString]
}];
if (callback && (index == [attachments count])) {
callback(itemArray, nil);
}
}];
}
Bu the above statement does not return the path for video File?
Please, can you share the working code for video file
The text was updated successfully, but these errors were encountered: