Releases: R4DIC4L/react-native-open-doc
Releases · R4DIC4L/react-native-open-doc
2.1.6 - Upgrade to support RN >=0.69.7
2.1.5 - First release since fork from react-native-open-doc
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]