Skip to content

Commit

Permalink
version up to v5.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Wonday committed May 28, 2019
1 parent 07a77d4 commit d9e4702
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
22 changes: 21 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,22 @@ react-native link rn-fetch-blob
react-native link react-native-pdf
```

**if you use RN 0.59.0+, please add following to your app/build.gradle**
```diff
android {

+ packagingOptions {
+ pickFirst 'lib/x86/libc++_shared.so'
+ pickFirst 'lib/x86_64/libjsc.so'
+ pickFirst 'lib/arm64-v8a/libjsc.so'
+ pickFirst 'lib/arm64-v8a/libc++_shared.so'
+ pickFirst 'lib/x86_64/libc++_shared.so'
+ pickFirst 'lib/armeabi-v7a/libc++_shared.so'
+ }

}
```

### FAQ

Q1. After installation and running, I can not see the pdf file.
Expand Down Expand Up @@ -68,9 +84,13 @@ A3. Check your uri, if you hit a pdf that is hosted on a `http` you will need to
Q4. why doesn't it work with react native expo?.
A4. Expo does not support native module. you can read more expo caveats [`here`](https://facebook.github.io/react-native/docs/getting-started.html#caveats)


### ChangeLog

v5.1.0
1. remove encodeURI(), **Degrade Notice: If you use Chinese/Japanese/Korean path, please encodeURI() yourself**
2. fix enableAnnotationRendering in iOS
3. Trusting certificates for api http redirection

v5.0.12
1. fix some codes for code safe
2. add flow typings
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-pdf",
"version": "5.0.12",
"version": "5.1.0",
"summary": "A react native PDF view component",
"description": "A react native PDF view component, support ios and android platform",
"main": "index.js",
Expand Down

0 comments on commit d9e4702

Please sign in to comment.