Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Video File Issue? #198

Open
1appstudio opened this issue Dec 20, 2019 · 1 comment
Open

Video File Issue? #198

1appstudio opened this issue Dec 20, 2019 · 1 comment

Comments

@1appstudio
Copy link

1appstudio commented Dec 20, 2019

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

@ajith-ab
Copy link

i ve used this package with all new features with react native greater than 0.60 support react-native-receive-sharing-intent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants