diff --git a/README.md b/README.md index 7cc50582..ba1c99b7 100644 --- a/README.md +++ b/README.md @@ -62,6 +62,10 @@ A4. Expo does not support native module. you can read more expo caveats [`here`] ### ChangeLog +v5.0.7 +1. onLoadComplete return table of contents +2. delete tmp file after downloaded + v5.0.6 1. add accessible to PdfPageView 2. restore podspec @@ -191,7 +195,7 @@ const styles = StyleSheet.create({ | enableRTL | bool | false | scroll page as "page3, page2, page1" | ✔ | ✖ | 5.0.1 | | enableAnnotationRendering | bool | true | enable rendering annotation, notice:iOS only support initial setting,not support realtime changing | ✔ | ✔ | 5.0.3 | | onLoadProgress | function(percent) | null | callback when loading, return loading progress (0-1) | ✔ | ✔ | <3.0 | -| onLoadComplete | function(numberOfPages, path, {width, height}) | null | callback when pdf load completed, return total page count and pdf local/cache path | ✔ | ✔ | <3.0 | +| onLoadComplete | function(numberOfPages, path, {width, height}, tableContents) | null | callback when pdf load completed, return total page count, pdf local/cache path, {width,height} and table of contents | ✔ | ✔ | <3.0 | | onPageChanged | function(page,numberOfPages) | null | callback when page changed ,return current page and total page count | ✔ | ✔ | <3.0 | | onError | function(error) | null | callback when error happened | ✔ | ✔ | <3.0 | | onPageSingleTap | function(page) | null | callback when page was single tapped | ✔ | ✔ | 3.0 | diff --git a/package.json b/package.json index 1bdd6b36..be7b317f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-pdf", - "version": "5.0.6", + "version": "5.0.7", "description": "A react native PDF view component", "main": "index.js", "typings": "./index.d.ts",