Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
R4DIC4L authored Jan 24, 2021
1 parent c1b52ad commit 4131e0e
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@

# react-native-open-doc
# react-native-open-document

This is a fork of [react-native-open-doc](https://github.com/capriza/react-native-open-doc).

Open files stored on device for preview - Android and iOS.

Expand All @@ -9,13 +11,14 @@ Share files on Android (for iOS use the react-native Share.share({ url: selected

## Getting started

`$ npm install react-native-open-doc --save`
`$ npm install react-native-open-document --save`

### Mostly automatic installation

1. `$ react-native link react-native-open-doc`
`$ react-native link react-native-open-document`

2. Android ONLY: [Define a FileProvider](https://developer.android.com/reference/android/support/v4/content/FileProvider)
Android ONLY:
[Define a FileProvider](https://developer.android.com/reference/android/support/v4/content/FileProvider)

Define a file provider in your AndroidManifest.xml.
Note that the authorities value should be `<your package name>.provider`, for example:
Expand Down

0 comments on commit 4131e0e

Please sign in to comment.