@react-native-ohos/react-native-pdf 6.7.7-rc.1 → 6.8.0-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js.flow CHANGED
@@ -1,67 +1,67 @@
1
- /**
2
- * @flow strict
3
- */
4
-
5
- import { Component } from 'react';
6
-
7
- import type { Node } from 'react';
8
- import type { FormField, Methods } from 'rn-fetch-blob';
9
- import type { ViewStyleProp } from 'react-native/Libraries/StyleSheet/StyleSheet'
10
-
11
- export type AssetId = number;
12
-
13
- export type FitWidth = 0;
14
- export type FitHeight = 1;
15
- export type FitBoth = 2;
16
-
17
- export type Source = {
18
- body?: string | FormField[],
19
- cache?: boolean,
20
- cacheFileName?: string,
21
- expiration?: number,
22
- headers?: { [key: string]: string },
23
- method?: Methods,
24
- uri: string
25
- };
26
-
27
- export type TableContent = {
28
- children: TableContent[],
29
- mNativePtr: number,
30
- pageIdx: number,
31
- title: string,
32
- };
33
-
34
- export type Props = {
35
- renderActivityIndicator?: (progress: number) => Node,
36
- enableAnnotationRendering?: boolean,
37
- enableAntialiasing?: boolean,
38
- enablePaging?: boolean,
39
- enableRTL?: boolean,
40
- fitPolicy?: FitWidth | FitHeight | FitBoth,
41
- horizontal?: boolean,
42
- showsHorizontalScrollIndicator?: boolean,
43
- showsVerticalScrollIndicator?: boolean,
44
- scrollEnabled?: boolean,
45
- maxScale?: number,
46
- minScale?: number,
47
- singlePage?: boolean,
48
- onError?: (error: Error) => void,
49
- onLoadComplete?: (numberOfPages: number, path: string, size: { height: number, width: number }, tableContents: ?TableContent[]) => void,
50
- onLoadProgress?: (percent: number) => void,
51
- onPageChanged?: (page: number, numberOfPages: number) => void,
52
- onPageSingleTap?: (page: number, x: number, y: number) => void,
53
- onScaleChanged?: (scale: number) => void,
54
- onPressLink?: (url: string) => void,
55
- page?: number,
56
- password?: string,
57
- progressContainerStyle?: ViewStyleProp,
58
- scale?: number,
59
- source: AssetId | Source,
60
- spacing?: number,
61
- style?: ViewStyleProp,
62
- testID?: string
63
- };
64
-
65
- declare export default class Pdf extends Component<Props> {
66
- setPage: (pageNumber: number) => void;
67
- }
1
+ /**
2
+ * @flow strict
3
+ */
4
+
5
+ import { Component } from 'react';
6
+
7
+ import type { Node } from 'react';
8
+ import type { FormField, Methods } from 'rn-fetch-blob';
9
+ import type { ViewStyleProp } from 'react-native/Libraries/StyleSheet/StyleSheet'
10
+
11
+ export type AssetId = number;
12
+
13
+ export type FitWidth = 0;
14
+ export type FitHeight = 1;
15
+ export type FitBoth = 2;
16
+
17
+ export type Source = {
18
+ body?: string | FormField[],
19
+ cache?: boolean,
20
+ cacheFileName?: string,
21
+ expiration?: number,
22
+ headers?: { [key: string]: string },
23
+ method?: Methods,
24
+ uri: string
25
+ };
26
+
27
+ export type TableContent = {
28
+ children: TableContent[],
29
+ mNativePtr: number,
30
+ pageIdx: number,
31
+ title: string,
32
+ };
33
+
34
+ export type Props = {
35
+ renderActivityIndicator?: (progress: number) => Node,
36
+ enableAnnotationRendering?: boolean,
37
+ enableAntialiasing?: boolean,
38
+ enablePaging?: boolean,
39
+ enableRTL?: boolean,
40
+ fitPolicy?: FitWidth | FitHeight | FitBoth,
41
+ horizontal?: boolean,
42
+ showsHorizontalScrollIndicator?: boolean,
43
+ showsVerticalScrollIndicator?: boolean,
44
+ scrollEnabled?: boolean,
45
+ maxScale?: number,
46
+ minScale?: number,
47
+ singlePage?: boolean,
48
+ onError?: (error: Error) => void,
49
+ onLoadComplete?: (numberOfPages: number, path: string, size: { height: number, width: number }, tableContents: ?TableContent[]) => void,
50
+ onLoadProgress?: (percent: number) => void,
51
+ onPageChanged?: (page: number, numberOfPages: number) => void,
52
+ onPageSingleTap?: (page: number, x: number, y: number) => void,
53
+ onScaleChanged?: (scale: number) => void,
54
+ onPressLink?: (url: string) => void,
55
+ page?: number,
56
+ password?: string,
57
+ progressContainerStyle?: ViewStyleProp,
58
+ scale?: number,
59
+ source: AssetId | Source,
60
+ spacing?: number,
61
+ style?: ViewStyleProp,
62
+ testID?: string
63
+ };
64
+
65
+ declare export default class Pdf extends Component<Props> {
66
+ setPage: (pageNumber: number) => void;
67
+ }
package/package.json CHANGED
@@ -1,61 +1,57 @@
1
- {
2
- "name": "@react-native-ohos/react-native-pdf",
3
- "version": "6.7.7-rc.1",
4
- "summary": "A react native PDF view component",
5
- "description": "A react native PDF view component, support ios and android platform",
6
- "main": "index.js",
7
- "typings": "./index.d.ts",
8
- "repository": {
9
- "type": "git",
10
- "url": "git+https://github.com/react-native-oh-library/react-native-pdf.git"
11
- },
12
- "harmony": {
13
- "alias": "react-native-pdf"
14
- },
15
- "keywords": [
16
- "react-component",
17
- "react-native",
18
- "pdf",
19
- "view",
20
- "viewer"
21
- ],
22
- "author": {
23
- "name": "Wonday",
24
- "url": "https://github.com/wonday"
25
- },
26
- "license": "MIT",
27
- "homepage": "https://github.com/react-native-oh-library/react-native-pdf",
28
- "bugs": {
29
- "url": "https://github.com/react-native-oh-library/react-native-pdf/issues"
30
- },
31
- "dependencies": {
32
- "crypto-js": "4.2.0",
33
- "deprecated-react-native-prop-types": "^2.3.0",
34
- "react-native-pdf": "6.7.6"
35
- },
36
- "devDependencies": {
37
- "@babel/core": "^7.20.2",
38
- "@babel/runtime": "^7.20.1",
39
- "prop-types": "^15.7.2"
40
- },
41
- "peerDependencies": {
42
- "react": "*",
43
- "react-native": "*",
44
- "react-native-blob-util": ">=0.13.7"
45
- },
46
- "files": [
47
- "harmony",
48
- "windows/",
49
- "DoubleTapView.js",
50
- "index.d.ts",
51
- "index.js",
52
- "index.js.flow",
53
- "PdfManager.js",
54
- "PdfPageView.js",
55
- "PdfView.js",
56
- "PdfViewFlatList.js",
57
- "PinchZoomView.js",
58
- "react-native-pdf.podspec",
59
- "fabric/"
60
- ]
61
- }
1
+ {
2
+ "name": "@react-native-ohos/react-native-pdf",
3
+ "version": "6.8.0-rc.2",
4
+ "summary": "A react native PDF view component",
5
+ "description": "A react native PDF view component, support ios and android platform",
6
+ "main": "index.js",
7
+ "typings": "./index.d.ts",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://gitcode.com/openharmony-sig/rntpc_react-native-pdf.git"
11
+ },
12
+ "harmony": {
13
+ "alias": "react-native-pdf"
14
+ },
15
+ "keywords": [
16
+ "react-component",
17
+ "react-native",
18
+ "pdf",
19
+ "view",
20
+ "viewer"
21
+ ],
22
+ "license": "MIT",
23
+ "homepage": "https://gitcode.com/openharmony-sig/rntpc_react-native-pdf",
24
+ "bugs": {
25
+ "url": "https://gitcode.com/openharmony-sig/rntpc_react-native-pdf/issues"
26
+ },
27
+ "dependencies": {
28
+ "crypto-js": "4.2.0",
29
+ "deprecated-react-native-prop-types": "^2.3.0",
30
+ "react-native-pdf": "6.7.6"
31
+ },
32
+ "devDependencies": {
33
+ "@babel/core": "^7.20.2",
34
+ "@babel/runtime": "^7.20.1",
35
+ "prop-types": "^15.7.2"
36
+ },
37
+ "peerDependencies": {
38
+ "react": "*",
39
+ "react-native": "*",
40
+ "react-native-blob-util": ">=0.13.7"
41
+ },
42
+ "files": [
43
+ "harmony",
44
+ "windows/",
45
+ "DoubleTapView.js",
46
+ "index.d.ts",
47
+ "index.js",
48
+ "index.js.flow",
49
+ "PdfManager.js",
50
+ "PdfPageView.js",
51
+ "PdfView.js",
52
+ "PdfViewFlatList.js",
53
+ "PinchZoomView.js",
54
+ "react-native-pdf.podspec",
55
+ "fabric/"
56
+ ]
57
+ }
@@ -1,18 +0,0 @@
1
- {
2
- "meta": {
3
- "stableOrder": true
4
- },
5
- "lockfileVersion": 3,
6
- "ATTENTION": "THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.",
7
- "specifiers": {
8
- "@rnoh/react-native-openharmony@../../node_modules/react-native-harmony/harmony/react_native_openharmony.har": "@rnoh/react-native-openharmony@../../node_modules/react-native-harmony/harmony/react_native_openharmony.har"
9
- },
10
- "packages": {
11
- "@rnoh/react-native-openharmony@../../node_modules/react-native-harmony/harmony/react_native_openharmony.har": {
12
- "name": "@rnoh/react-native-openharmony",
13
- "version": "0.77.8",
14
- "resolved": "../../node_modules/react-native-harmony/harmony/react_native_openharmony.har",
15
- "registryType": "local"
16
- }
17
- }
18
- }