react-native-pdf-light
Advanced tools
Comparing version 2.1.0 to 2.2.0
@@ -168,2 +168,3 @@ "use strict"; | ||
annotation: props.annotation, | ||
annotationStr: props.annotationStr, | ||
page: index, | ||
@@ -173,3 +174,3 @@ source: source, | ||
}))); | ||
}, [maxPageHeight, props.annotation, source]); | ||
}, [maxPageHeight, props.annotation, props.annotationStr, source]); | ||
return /*#__PURE__*/_react.default.createElement(_reactNative.FlatList, { | ||
@@ -176,0 +177,0 @@ data: flatListLayout.height !== 0 || pageDims.length === 0 ? pageDims : [], |
@@ -41,2 +41,3 @@ "use strict"; | ||
annotation: (0, _Util.asPath)(props.annotation), | ||
annotationStr: props.annotationStr, | ||
onLayout: onLayout, | ||
@@ -43,0 +44,0 @@ onPdfError: onPdfError, |
@@ -151,2 +151,3 @@ import React, { forwardRef, useCallback, useEffect, useImperativeHandle, useRef, useState } from 'react'; | ||
annotation: props.annotation, | ||
annotationStr: props.annotationStr, | ||
page: index, | ||
@@ -156,3 +157,3 @@ source: source, | ||
}))); | ||
}, [maxPageHeight, props.annotation, source]); | ||
}, [maxPageHeight, props.annotation, props.annotationStr, source]); | ||
return /*#__PURE__*/React.createElement(FlatList, { | ||
@@ -159,0 +160,0 @@ data: flatListLayout.height !== 0 || pageDims.length === 0 ? pageDims : [], |
@@ -27,2 +27,3 @@ import React, { useCallback } from 'react'; | ||
annotation: asPath(props.annotation), | ||
annotationStr: props.annotationStr, | ||
onLayout: onLayout, | ||
@@ -29,0 +30,0 @@ onPdfError: onPdfError, |
@@ -87,2 +87,6 @@ import React from 'react'; | ||
/** | ||
* PAS v1 annotation JSON string. | ||
*/ | ||
annotationStr?: string | undefined; | ||
/** | ||
* Path to annotation data. | ||
@@ -89,0 +93,0 @@ */ |
@@ -12,2 +12,6 @@ import { LayoutChangeEvent, ViewStyle } from 'react-native'; | ||
/** | ||
* PAS v1 annotation JSON string. | ||
*/ | ||
annotationStr?: string; | ||
/** | ||
* Path to annotation data. | ||
@@ -14,0 +18,0 @@ */ |
{ | ||
"name": "react-native-pdf-light", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"description": "Minimalist PDF viewer for React Native", | ||
@@ -5,0 +5,0 @@ "main": "lib/commonjs/index", |
@@ -65,2 +65,4 @@ # react-native-pdf-light | ||
- Optional: Path to annotation data. File assumed to be [PAS v1](https://github.com/alpha0010/paged-annotation#version-1). | ||
- `annotationStr: string` | ||
- Optional: Stringified JSON of annotation data. Data assumed to be [PAS v1](https://github.com/alpha0010/paged-annotation#version-1). | ||
- `onError: (error: Error) => void` | ||
@@ -102,2 +104,4 @@ - Optional: Callback to handle errors. | ||
- Optional: Path to annotation data. File assumed to be [PAS v1](https://github.com/alpha0010/paged-annotation#version-1). | ||
- `annotationStr: string` | ||
- Optional: Stringified JSON of annotation data. Data assumed to be [PAS v1](https://github.com/alpha0010/paged-annotation#version-1). | ||
- `page: number` | ||
@@ -104,0 +108,0 @@ - Page (0-indexed) of document to display. |
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
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
234528
2316
162