alinz / react-native-share-extension

react-native as an engine to drive share extension
MIT License
763 stars 398 forks source link

Share file types #26

Open benoist opened 7 years ago

benoist commented 7 years ago

Hi,

Currently it's not possible to share PDFs in android as the files are checked for file type

https://github.com/alinz/react-native-share-extension/blob/master/android/src/main/java/com/alinz/parkerdan/shareextension/ShareModule.java#L59

I've added a check for application/pdf as well, but maybe there are other ways to detect if the share is file...

FlorianGerhardt commented 7 years ago

Any updates on this? Making the mimetype flexible would be awesome as I'm trying to share .pdf and .ppt files

alinz commented 7 years ago

since that list at the moment is static, it's better to expose that one as a JS function. Any one interested doing a PR?

ajith-ab commented 5 years ago

I Make react-native-file-share-intent it's Work perfectly on both platforms. It supports all media to share our App