Skip to content

Releases: R4DIC4L/react-native-open-doc

2.1.6 - Upgrade to support RN >=0.69.7

02 Apr 20:49
Compare
Choose a tag to compare

Only version upgrade changes.

  • Upgrade android to support RN >=0.69.7
  • Upgrade ios target to 9
  • Move podspec outside ios folder to support newer RN

2.1.5 - First release since fork from react-native-open-doc

24 Jan 14:49
Compare
Choose a tag to compare

Exported functions

Opening a document for view:

  • open(pathToFile) - by file path (local path, with or without file://) [android & iOS]
  • NEW openWithSuggestedMime(contentUri, suggestedMimeType) - for content:// URI document with specified mime type [android ONLY]

Sharing a document in android (for iOS use Share.share({ url: selectedUri }) api):

  • share(pathToFile) - by file path (local path, with or without file://) [android ONLY]
  • NEW shareWithSuggestedMime(contentUri, suggestedMimeType) - for content:// URI document with specified mime type [android ONLY]

Open file picker (android and iOS)

  • pick(null, (error, files) => {}) - use file picker [android & iOS]