react-native-pdf
Advanced tools
Comparing version 5.0.11 to 5.0.12
@@ -13,3 +13,3 @@ /** | ||
interface Props { | ||
style?: ReactNative.ViewStyle, | ||
style?: ReactNative.StyleProp<ReactNative.ViewStyle>, | ||
source: object, | ||
@@ -16,0 +16,0 @@ page?: number, |
@@ -251,6 +251,7 @@ /** | ||
path: tempCacheFile, | ||
trusty: true, | ||
}) | ||
.fetch( | ||
source.method ? source.method : 'GET', | ||
source.uri, | ||
encodeURI(source.uri), | ||
source.headers ? source.headers : {}, | ||
@@ -319,5 +320,6 @@ source.body ? source.body : "" | ||
setNativeProps = nativeProps => { | ||
if (this._root){ | ||
this._root.setNativeProps(nativeProps); | ||
} | ||
this._root.setNativeProps(nativeProps); | ||
}; | ||
@@ -324,0 +326,0 @@ |
{ | ||
"name": "react-native-pdf", | ||
"version": "5.0.11", | ||
"version": "5.0.12", | ||
"summary": "A react native PDF view component", | ||
@@ -5,0 +5,0 @@ "description": "A react native PDF view component, support ios and android platform", |
@@ -20,3 +20,3 @@ # react-native-pdf | ||
| ------------------------- | :------: | :-------------: | | ||
| React Native | 0.47 - 0.56 | ^0.57 | | ||
| React Native | 0.4x - 0.56 | ^0.57 | | ||
@@ -75,2 +75,7 @@ ### Installation | ||
v5.0.12 | ||
1. fix some codes for code safe | ||
2. add flow typings | ||
3. update style prop type | ||
v5.0.11 | ||
@@ -201,4 +206,4 @@ 1. fix sample codes | ||
| scale | number | 1.0 | should minScale<=scale<=maxScale| ✔ | ✔ | <3.0 | | ||
| minScale | number | 1.0 | max scale| ✔ | ✔ | 5.0.5 | | ||
| maxScale | number | 3.0 | min scale| ✔ | ✔ | 5.0.5 | | ||
| minScale | number | 1.0 | min scale| ✔ | ✔ | 5.0.5 | | ||
| maxScale | number | 3.0 | max scale| ✔ | ✔ | 5.0.5 | | ||
| 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)| ✔ | ✔ | <3.0 | | ||
@@ -211,3 +216,3 @@ | fitWidth | bool | false | if true fit the width of view, can not use fitWidth=true together with scale| ✔ | ✔ | <3.0, abandoned from 3.0 | | ||
| activityIndicator | Component | <ProgressBar/> | when loading show it as an indicator, you can use your component| ✔ | ✔ | <3.0 | | ||
| activityIndicatorProps | object | {color:'#009900',progressTintColor:'#009900'} | activityIndicator props | ✔ | ✔ | 3.1 | | ||
| activityIndicatorProps | object | {color:'#009900', progressTintColor:'#009900'} | activityIndicator props | ✔ | ✔ | 3.1 | | ||
| 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 | ✖ | ✔ | <3.0 | | ||
@@ -214,0 +219,0 @@ | enablePaging | bool | false | only show one page in screen | ✔ | ✔ | 5.0.1 | |
3128405
80
1798
245