Skip to content

Commit 2d72f1c

Browse files
committed
docs: add annotation from string api
1 parent 1b07a36 commit 2d72f1c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ import { ZoomPdfView } from 'react-native-pdf-light/Zoom';
6262
Props:
6363
- `annotation: string`
6464
- Optional: Path to annotation data. File assumed to be [PAS v1](https://github.com/alpha0010/paged-annotation#version-1).
65+
- `annotationStr: string`
66+
- Optional: Stringified JSON of annotation data. Data assumed to be [PAS v1](https://github.com/alpha0010/paged-annotation#version-1).
6567
- `onError: (error: Error) => void`
6668
- Optional: Callback to handle errors.
6769
- `onLoadComplete: (numberOfPages: number) => void`
@@ -98,6 +100,8 @@ Methods:
98100
Props:
99101
- `annotation: string`
100102
- Optional: Path to annotation data. File assumed to be [PAS v1](https://github.com/alpha0010/paged-annotation#version-1).
103+
- `annotationStr: string`
104+
- Optional: Stringified JSON of annotation data. Data assumed to be [PAS v1](https://github.com/alpha0010/paged-annotation#version-1).
101105
- `page: number`
102106
- Page (0-indexed) of document to display.
103107
- `resizeMode: 'contain' | 'fitWidth'`

0 commit comments

Comments
 (0)