Expensify / react-native-share-menu

A module for React Native that adds your app to the share menu of the device
MIT License
654 stars 238 forks source link

PDF sharing in iOS #111

Open sanghaya opened 3 years ago

sanghaya commented 3 years ago

Hi,

Thanks for the amazing library. I'm trying to figure out how to let Share Extension be recognized for PDF files. Currently the Share Extension doesn't pop up for PDFs. I have a hunch that I should manipulate NSExtensionActivationRule from Info.plist, but I couldn't find any more resources from here.

Any help or lead would be greatly appreciated. Thanks!

j2pjolapara commented 2 years ago

Facing same issue, Select PDF doesn't pop up our app for share.

pontustengroth commented 1 year ago

Add in the NSExtensionActivationRule dict in the share menu info.plist

<key>NSExtensionActivationSupportsFileWithMaxCount</key>
<integer>10</integer>  // Amount of files it will be able to share at once

Worked for me in the files app atleast