react-native-pdf
Advanced tools
Comparing version 1.2.8 to 1.3.0
@@ -19,3 +19,3 @@ { | ||
"react-native": "0.47.1", | ||
"react-native-fetch-blob": "0.10.5", | ||
"react-native-fetch-blob": "0.10.8", | ||
"react-native-pdf": "github:wonday/react-native-pdf#master" | ||
@@ -22,0 +22,0 @@ }, |
@@ -21,2 +21,4 @@ // | ||
activityIndicator?: any, | ||
enableAntialiasing?: boolean, | ||
fitWidth?: boolean, | ||
onLoadComplete?: (pageCount: number) => void, | ||
@@ -23,0 +25,0 @@ onPageChanged?: (page: number, pageCount: number) => void, |
@@ -19,2 +19,3 @@ /** | ||
ProgressViewIOS, | ||
ViewPropTypes | ||
} from 'react-native' | ||
@@ -238,3 +239,3 @@ import RNFetchBlob from 'react-native-fetch-blob' | ||
Pdf.propTypes = { | ||
...View.propTypes, | ||
...ViewPropTypes, | ||
path: PropTypes.string, | ||
@@ -255,2 +256,4 @@ source: PropTypes.oneOfType([ | ||
activityIndicator: PropTypes.any, | ||
enableAntialiasing: PropTypes.bool, | ||
fitWidth: PropTypes.bool, | ||
onChange: PropTypes.func, | ||
@@ -257,0 +260,0 @@ onLoadComplete: PropTypes.func, |
{ | ||
"name": "react-native-pdf", | ||
"version": "1.2.8", | ||
"version": "1.3.0", | ||
"description": "A react native PDF view component", | ||
@@ -31,5 +31,5 @@ "main": "index.js", | ||
"prop-types": "^15.5.10", | ||
"react-native-fetch-blob": "^0.10.5" | ||
"react-native-fetch-blob": "^0.10.8" | ||
}, | ||
"peerDependencies": {} | ||
} |
@@ -33,2 +33,7 @@ # react-native-pdf | ||
v1.3.0 | ||
1. fix drawing problem on Android 4.4 #31 | ||
2. add fitWidth support #36, #38 | ||
v1.2.8 | ||
@@ -47,7 +52,2 @@ | ||
v1.2.4 | ||
1. Refactor pan gesture and fix pdf not show complete when scale on iOS #20 | ||
2. Replace PropTypes with prop-types package #22 | ||
[[more]](https://github.com/wonday/react-native-pdf/releases) | ||
@@ -181,3 +181,4 @@ | ||
| scale | number | 1.0 | zoom scale, scale>=1| ✔ | ✔ | | ||
| horizontal | bool | false | draw page direction | ✔ | ✔ | | ||
| horizontal | bool | false | draw page direction, if you want to listen the orientation change, you can use [[react-native-orientation-locker]](https://github.com/wonday/react-native-orientation-locker)| ✔ | ✔ | | ||
| fitWidth | bool | false | if true fit the width of view | ✔ | ✔ | | ||
| spacing | number | 10 | draw page breaker | ✔ | ✔ | | ||
@@ -187,2 +188,3 @@ | password | string | "" | pdf password, if password error, will call OnError() with message "Password required or incorrect password." | ✔ | ✔ | | ||
| activityIndicator | Component | ProgressBar | when loading show it as an indicator | ✔ | ✔ | | ||
| enableAntialiasing | bool | true | improve rendering a little bit on low-res screens, but maybe course some problem on Android 4.4, so add a switch | ✖ | ✔ | | ||
| onLoadProgress | function | null | callback when loading, return loading progress (0-1) | ✔ | ✔ | | ||
@@ -189,0 +191,0 @@ | onLoadComplete | function | null | callback when pdf load completed, return total page count | ✔ | ✔ | |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
2989981
783
209