joltup / rn-fetch-blob

A project committed to making file access and data transfer easier, efficient for React Native developers.
MIT License
2.81k stars 772 forks source link

feat(ios): present open in menu #534

Open doomsower opened 4 years ago

doomsower commented 4 years ago

For our project we need openInMenu native functionality rather than optionsMenu which currently this module provides via previewDocument. This PR adds it.

When I started to investigate the problem, I found that method name mapping js <-> native is very confusing. So, because JS api is platform-specific anyway, I decided to provide native method names in addition to current methods.

P.S. After I committed files I realized that my IDE spoiled the code style and created some diff noise, because there is no editorconfig/prettier/eslint/whatever in this project. If you insist, I can fix this manually, but I suggest you to add some styling config and format everything.