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

Share PDF files #4

Closed
gglazer opened this issue Jul 16, 2018 · 1 comment
Closed

Share PDF files #4

gglazer opened this issue Jul 16, 2018 · 1 comment

Comments

@gglazer
Copy link

gglazer commented Jul 16, 2018

Hello,
I'd like to share PDF files with another apps (both on Android and iOS).
Could you give me an example to use Share.file(path: <String>, mimeType: ShareType, title: , text: );?
These files are in app's download directory.
Thanks in advance!

@gglazer gglazer changed the title Share PDF Share PDF files Jul 16, 2018
@d-silveira
Copy link
Owner

d-silveira commented Aug 14, 2018

Currently only Android is working for file sharing.
You'll need to use a documents picker and, upon selection of the document, you'll receive it's path, which you can then use to the Share.file() constructor, the mimeType should be set to ShareType.TYPE_FILE, title and text are optional.
Forewarning, @pablote discovered an issue with permissions which might affect you once you are finally able to share the file.

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