@react-native-ohos/react-native-pdf 6.7.7-rc.1 → 6.8.0-rc.1
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/PdfView.js +417 -417
- package/README.md +1 -1
- package/fabric/RNPDFPdfNativeComponent.js +48 -48
- package/harmony/pdfview/BuildProfile.ets +16 -16
- package/harmony/pdfview/build/default/cache/default/default@HarCompileArkTS/esmodule/.ts_checker_cache +4426 -0
- package/harmony/pdfview/build/default/cache/default/default@HarCompileArkTS/esmodule/.tsbuildinfo +1 -0
- package/harmony/pdfview/build/default/cache/default/default@HarCompileArkTS/esmodule/.tsbuildinfo.linter +1 -0
- package/harmony/pdfview/build/default/cache/default/default@HarCompileArkTS/esmodule/compileInfo.json +1 -0
- package/harmony/pdfview/build/default/cache/default/default@HarCompileArkTS/esmodule/debug/compiler.cache/modules/Index.ets-5eef5c87aa27b233ef53cb620fed1f5d.msgpack +0 -0
- package/harmony/pdfview/build/default/cache/default/default@HarCompileArkTS/esmodule/debug/compiler.cache/modules/Logger.ets-c555840d2a4b574cf40c57fc8b91bf97.msgpack +0 -0
- package/harmony/pdfview/build/default/cache/default/default@HarCompileArkTS/esmodule/debug/compiler.cache/modules/RTNPdfView.ets-030d7d4eb9347bd497689e1ef58937f0.msgpack +1711 -0
- package/harmony/pdfview/build/default/cache/default/default@HarCompileArkTS/esmodule/debug/compiler.cache/modules/types.ts-c405c8f7d848bd5a548ec85c97e839bd.msgpack +0 -0
- package/harmony/pdfview/build/default/cache/default/default@HarCompileArkTS/esmodule/debug/compiler.cache/other/pkgName2SourceRoots.msgpack +1 -0
- package/harmony/pdfview/build/default/cache/default/default@HarCompileArkTS/esmodule/debug/compiler.cache/plugins/plugins.msgpack +0 -0
- package/harmony/pdfview/build/default/cache/default/default@HarCompileArkTS/esmodule/debug/dep_info.json +1 -0
- package/harmony/pdfview/build/default/cache/default/default@PackageHar/BuildProfile.ets +17 -0
- package/harmony/pdfview/build/default/cache/default/default@PackageHar/Index.ets +7 -0
- package/harmony/pdfview/build/default/cache/default/default@PackageHar/ResourceTable.txt +1 -0
- package/harmony/pdfview/build/default/cache/default/default@PackageHar/build-profile.json5 +28 -0
- package/harmony/pdfview/build/default/cache/default/default@PackageHar/consumer-rules.txt +0 -0
- package/harmony/pdfview/build/default/cache/default/default@PackageHar/hvigorfile.ts +6 -0
- package/harmony/pdfview/build/default/cache/default/default@PackageHar/obfuscation-rules.txt +18 -0
- package/harmony/pdfview/build/default/cache/default/default@PackageHar/oh-package-lock.json5 +21 -0
- package/harmony/pdfview/build/default/cache/default/default@PackageHar/oh-package.json5 +1 -0
- package/harmony/pdfview/build/default/cache/default/default@PackageHar/src/main/cpp/CMakeLists.txt +8 -0
- package/harmony/pdfview/build/default/cache/default/default@PackageHar/src/main/cpp/ComponentDescriptors.h +36 -0
- package/harmony/pdfview/build/default/cache/default/default@PackageHar/src/main/cpp/EventEmitters.cpp +39 -0
- package/harmony/pdfview/build/default/cache/default/default@PackageHar/src/main/cpp/EventEmitters.h +47 -0
- package/harmony/pdfview/build/default/cache/default/default@PackageHar/src/main/cpp/PdfEventEmitRequestHandler.h +50 -0
- package/harmony/pdfview/build/default/cache/default/default@PackageHar/src/main/cpp/PdfViewJSIBinder.h +71 -0
- package/harmony/pdfview/build/default/cache/default/default@PackageHar/src/main/cpp/PdfViewPackage.h +55 -0
- package/harmony/pdfview/build/default/cache/default/default@PackageHar/src/main/cpp/Props.cpp +58 -0
- package/harmony/pdfview/build/default/cache/default/default@PackageHar/src/main/cpp/Props.h +61 -0
- package/harmony/pdfview/build/default/cache/default/default@PackageHar/src/main/cpp/RTNPdfViewSpecsJSI-generated.cpp +34 -0
- package/harmony/pdfview/build/default/cache/default/default@PackageHar/src/main/cpp/RTNPdfViewSpecsJSI.h +36 -0
- package/harmony/pdfview/build/default/cache/default/default@PackageHar/src/main/cpp/ShadowNodes.cpp +33 -0
- package/harmony/pdfview/build/default/cache/default/default@PackageHar/src/main/cpp/ShadowNodes.h +47 -0
- package/harmony/pdfview/build/default/cache/default/default@PackageHar/src/main/cpp/States.cpp +33 -0
- package/harmony/pdfview/build/default/cache/default/default@PackageHar/src/main/cpp/States.h +52 -0
- package/harmony/pdfview/build/default/cache/default/default@PackageHar/src/main/ets/Logger.ets +64 -0
- package/harmony/pdfview/build/default/cache/default/default@PackageHar/src/main/ets/components/mainpage/RTNPdfView.ets +513 -0
- package/harmony/pdfview/build/default/cache/default/default@PackageHar/src/main/ets/components/mainpage/types.ts +15 -0
- package/harmony/pdfview/build/default/cache/default/default@PackageHar/src/main/module.json +32 -0
- package/harmony/pdfview/build/default/cache/default/default@PackageHar/src/main/resources/base/element/string.json +8 -0
- package/harmony/pdfview/build/default/cache/default/default@PackageHar/src/main/resources/en_US/element/string.json +8 -0
- package/harmony/pdfview/build/default/cache/default/default@PackageHar/src/main/resources/zh_CN/element/string.json +8 -0
- package/harmony/pdfview/build/default/generated/pm/default/oh-package.json5 +1 -0
- package/harmony/pdfview/build/default/generated/r/default/ResourceTable.h +24 -0
- package/harmony/pdfview/build/default/intermediates/loader/default/loader.json +25 -0
- package/harmony/pdfview/build/default/intermediates/merge_profile/default/module.json +29 -0
- package/harmony/pdfview/build/default/intermediates/patch/default/base_native_libs.json +1 -0
- package/harmony/pdfview/build/default/intermediates/process_profile/default/module.json +32 -0
- package/harmony/pdfview/build/default/intermediates/res/default/ResourceTable.txt +1 -0
- package/harmony/pdfview/build/default/intermediates/res/default/ark_module.json +1 -0
- package/harmony/pdfview/build/default/intermediates/res/default/ids_map/id_defined.json +7 -0
- package/harmony/pdfview/build/default/intermediates/res/default/module.json +28 -0
- package/harmony/pdfview/build/default/intermediates/res/default/opt-compression.json +1 -0
- package/harmony/pdfview/build/default/intermediates/res/default/resConfig.json +1 -0
- package/harmony/pdfview/build/default/intermediates/res/default/resources/rawfile/rnoh.profdata +0 -0
- package/harmony/pdfview/build/default/intermediates/res/default/resources.index +0 -0
- package/harmony/pdfview/build/default/outputs/default/pdfview.har +0 -0
- package/harmony/pdfview/oh-package-lock.json5 +9 -6
- package/harmony/pdfview/oh-package.json5 +1 -1
- package/harmony/pdfview.har +0 -0
- package/index.d.ts +72 -72
- package/index.js +491 -491
- package/index.js.flow +67 -67
- package/package.json +57 -61
|
@@ -0,0 +1 @@
|
|
|
1
|
+
�r@�
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"resolveConflictMode":false,"depName2DepInfo":{"pdfview":{"dependencyType":"har","isByteCodeHar":false,"pkgRootPath":"E:\\gitcode\\rntpc_react-native-pdf\\harmony\\pdfview","pkgName":"@react-native-ohos/react-native-pdf","pkgVersion":"6.8.0-rc.1"},"@rnoh/react-native-openharmony":{"dependencyType":"har","isByteCodeHar":false,"pkgRootPath":"E:\\tester\\25P4\\harmony\\oh_modules\\.ohpm\\@rnoh+react-native-openharmony@dkckhzbnghjx0jiaazwhrzk+wnmscnuz7a0y9vmtjvw=\\oh_modules\\@rnoh\\react-native-openharmony","pkgName":"@rnoh/react-native-openharmony","pkgVersion":"0.77.22"},"@ohos/hypium":{"dependencyType":"other","isByteCodeHar":false,"pkgRootPath":"E:\\tester\\25P4\\harmony\\oh_modules\\.ohpm\\@ohos+hypium@1.0.6\\oh_modules\\@ohos\\hypium","pkgName":"@ohos/hypium","pkgVersion":"1.0.6"}}}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Use these variables when you tailor your ArkTS code. They must be of the const type.
|
|
3
|
+
*/
|
|
4
|
+
export const HAR_VERSION = '6.8.0-rc.1';
|
|
5
|
+
export const BUILD_MODE_NAME = 'debug';
|
|
6
|
+
export const DEBUG = true;
|
|
7
|
+
export const TARGET_NAME = 'default';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* BuildProfile Class is used only for compatibility purposes.
|
|
11
|
+
*/
|
|
12
|
+
export default class BuildProfile {
|
|
13
|
+
static readonly HAR_VERSION = HAR_VERSION;
|
|
14
|
+
static readonly BUILD_MODE_NAME = BUILD_MODE_NAME;
|
|
15
|
+
static readonly DEBUG = DEBUG;
|
|
16
|
+
static readonly TARGET_NAME = TARGET_NAME;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
string page_show 0x02000000
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"apiType": "stageMode",
|
|
3
|
+
"buildOption": {
|
|
4
|
+
},
|
|
5
|
+
"buildOptionSet": [
|
|
6
|
+
{
|
|
7
|
+
"name": "release",
|
|
8
|
+
"arkOptions": {
|
|
9
|
+
"obfuscation": {
|
|
10
|
+
"ruleOptions": {
|
|
11
|
+
"enable": true,
|
|
12
|
+
"files": [
|
|
13
|
+
"./obfuscation-rules.txt"
|
|
14
|
+
]
|
|
15
|
+
},
|
|
16
|
+
"consumerFiles": [
|
|
17
|
+
"./consumer-rules.txt"
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
"targets": [
|
|
24
|
+
{
|
|
25
|
+
"name": "default"
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Define project specific obfuscation rules here.
|
|
2
|
+
# You can include the obfuscation configuration files in the current module's build-profile.json5.
|
|
3
|
+
#
|
|
4
|
+
# For more details, see
|
|
5
|
+
# https://gitee.com/openharmony/arkcompiler_ets_frontend/blob/master/arkguard/README.md
|
|
6
|
+
|
|
7
|
+
# Obfuscation options:
|
|
8
|
+
# -disable-obfuscation: disable all obfuscations
|
|
9
|
+
# -enable-property-obfuscation: obfuscate the property names
|
|
10
|
+
# -enable-toplevel-obfuscation: obfuscate the names in the global scope
|
|
11
|
+
# -compact: remove unnecessary blank spaces and all line feeds
|
|
12
|
+
# -remove-log: remove all console.* statements
|
|
13
|
+
# -print-namecache: print the name cache that contains the mapping from the old names to new names
|
|
14
|
+
# -apply-namecache: reuse the given cache file
|
|
15
|
+
|
|
16
|
+
# Keep options:
|
|
17
|
+
# -keep-property-name: specifies property names that you want to keep
|
|
18
|
+
# -keep-global-name: specifies names that you want to keep in the global scope
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"stableOrder": true,
|
|
4
|
+
"enableUnifiedLockfile": false
|
|
5
|
+
},
|
|
6
|
+
"lockfileVersion": 3,
|
|
7
|
+
"ATTENTION": "THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.",
|
|
8
|
+
"specifiers": {
|
|
9
|
+
"@ohos/materialprogressbar@2.1.3-rc.0": "@ohos/materialprogressbar@2.1.3-rc.0",
|
|
10
|
+
"@rnoh/react-native-openharmony@../../../../tester/25P4/node_modules/@react-native-oh/react-native-harmony/react_native_openharmony.har": "@rnoh/react-native-openharmony@../../../../tester/25P4/node_modules/@react-native-oh/react-native-harmony/react_native_openharmony.har"
|
|
11
|
+
},
|
|
12
|
+
"packages": {
|
|
13
|
+
"@rnoh/react-native-openharmony@../../../../tester/25P4/node_modules/@react-native-oh/react-native-harmony/react_native_openharmony.har": {
|
|
14
|
+
"name": "",
|
|
15
|
+
"version": "0.77.22",
|
|
16
|
+
"integrity": "",
|
|
17
|
+
"resolved": "",
|
|
18
|
+
"registryType": "local"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"@react-native-ohos/react-native-pdf","version":"6.8.0-rc.1","description":"Please describe the basic information.","main":"Index.ets","author":"","license":"Apache-2.0","dependencies":{"@rnoh/react-native-openharmony":"\"file:../../node_modules/react-native-harmony/harmony/react_native_openharmony.har\""},"metadata":{"sourceRoots":["./src/main"],"debug":true},"compatibleSdkVersionStage":"beta1","compatibleSdkVersion":12,"compatibleSdkType":"HarmonyOS","obfuscated":false}
|
package/harmony/pdfview/build/default/cache/default/default@PackageHar/src/main/cpp/CMakeLists.txt
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
cmake_minimum_required(VERSION 3.4.1)
|
|
2
|
+
set(CMAKE_VERBOSE_MAKEFILE on)
|
|
3
|
+
|
|
4
|
+
file(GLOB rnoh_pdf_view_SRC CONFIGURE_DEPENDS *.cpp)
|
|
5
|
+
add_library(rnoh_pdf_view SHARED ${rnoh_pdf_view_SRC})
|
|
6
|
+
target_include_directories(rnoh_pdf_view PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
|
7
|
+
target_link_libraries(rnoh_pdf_view PUBLIC rnoh)
|
|
8
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MIT License
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2024 Huawei Device Co., Ltd.
|
|
5
|
+
*
|
|
6
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
* in the Software without restriction, including without limitation the rights
|
|
9
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
* furnished to do so, subject to the following conditions:
|
|
12
|
+
*
|
|
13
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
* copies or substantial portions of the Software.
|
|
15
|
+
*
|
|
16
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
* SOFTWARE.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
#pragma once
|
|
26
|
+
|
|
27
|
+
#include "ShadowNodes.h"
|
|
28
|
+
#include <react/renderer/core/ConcreteComponentDescriptor.h>
|
|
29
|
+
|
|
30
|
+
namespace facebook {
|
|
31
|
+
namespace react {
|
|
32
|
+
|
|
33
|
+
using RNPDFPdfViewComponentDescriptor = ConcreteComponentDescriptor<RNPDFPdfViewShadowNode>;
|
|
34
|
+
|
|
35
|
+
} // namespace react
|
|
36
|
+
} // namespace facebook
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MIT License
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2024 Huawei Device Co., Ltd.
|
|
5
|
+
*
|
|
6
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
* in the Software without restriction, including without limitation the rights
|
|
9
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
* furnished to do so, subject to the following conditions:
|
|
12
|
+
*
|
|
13
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
* copies or substantial portions of the Software.
|
|
15
|
+
*
|
|
16
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
* SOFTWARE.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
#include "EventEmitters.h"
|
|
26
|
+
|
|
27
|
+
namespace facebook {
|
|
28
|
+
namespace react {
|
|
29
|
+
|
|
30
|
+
void RNPDFPdfViewEventEmitter::onChange(OnChange event) const {
|
|
31
|
+
dispatchEvent("change", [event=std::move(event)](jsi::Runtime &runtime) {
|
|
32
|
+
auto payload = jsi::Object(runtime);
|
|
33
|
+
payload.setProperty(runtime, "message", event.message);
|
|
34
|
+
return payload;
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
} // namespace react
|
|
39
|
+
} // namespace facebook
|
package/harmony/pdfview/build/default/cache/default/default@PackageHar/src/main/cpp/EventEmitters.h
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MIT License
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2024 Huawei Device Co., Ltd.
|
|
5
|
+
*
|
|
6
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
* in the Software without restriction, including without limitation the rights
|
|
9
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
* furnished to do so, subject to the following conditions:
|
|
12
|
+
*
|
|
13
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
* copies or substantial portions of the Software.
|
|
15
|
+
*
|
|
16
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
* SOFTWARE.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
#pragma once
|
|
26
|
+
|
|
27
|
+
#include <react/renderer/components/view/ViewEventEmitter.h>
|
|
28
|
+
#include <jsi/jsi.h>
|
|
29
|
+
|
|
30
|
+
namespace facebook {
|
|
31
|
+
namespace react {
|
|
32
|
+
|
|
33
|
+
class JSI_EXPORT RNPDFPdfViewEventEmitter : public ViewEventEmitter {
|
|
34
|
+
public:
|
|
35
|
+
using ViewEventEmitter::ViewEventEmitter;
|
|
36
|
+
|
|
37
|
+
struct OnChange {
|
|
38
|
+
std::string message;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
void onChange(OnChange value) const;
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
} // namespace react
|
|
47
|
+
} // namespace facebook
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MIT License
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2024 Huawei Device Co., Ltd.
|
|
5
|
+
*
|
|
6
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
* in the Software without restriction, including without limitation the rights
|
|
9
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
* furnished to do so, subject to the following conditions:
|
|
12
|
+
*
|
|
13
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
* copies or substantial portions of the Software.
|
|
15
|
+
*
|
|
16
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
* SOFTWARE.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
#pragma once
|
|
26
|
+
|
|
27
|
+
#include "RNOH/ArkJS.h"
|
|
28
|
+
#include "RNOH/EventEmitRequestHandler.h"
|
|
29
|
+
#include "EventEmitters.h"
|
|
30
|
+
|
|
31
|
+
using namespace facebook;
|
|
32
|
+
namespace rnoh {
|
|
33
|
+
|
|
34
|
+
class PdfEventEmitRequestHandler : public EventEmitRequestHandler {
|
|
35
|
+
public:
|
|
36
|
+
void handleEvent(EventEmitRequestHandler::Context const &ctx) override {
|
|
37
|
+
if (ctx.eventName != "RTNPdfView") {
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
ArkJS arkJs(ctx.env);
|
|
41
|
+
auto eventEmitter = ctx.shadowViewRegistry->getEventEmitter<react::RNPDFPdfViewEventEmitter>(ctx.tag);
|
|
42
|
+
if (eventEmitter == nullptr) {
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
auto message = arkJs.getString(arkJs.getObjectProperty(ctx.payload, "message"));
|
|
46
|
+
react::RNPDFPdfViewEventEmitter::OnChange event = {message};
|
|
47
|
+
eventEmitter->onChange(event);
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MIT License
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2024 Huawei Device Co., Ltd.
|
|
5
|
+
*
|
|
6
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
* in the Software without restriction, including without limitation the rights
|
|
9
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
* furnished to do so, subject to the following conditions:
|
|
12
|
+
*
|
|
13
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
* copies or substantial portions of the Software.
|
|
15
|
+
*
|
|
16
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
* SOFTWARE.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
#ifndef HARMONY_PDFVIEWJSIBINDER_H
|
|
26
|
+
#define HARMONY_PDFVIEWJSIBINDER_H
|
|
27
|
+
|
|
28
|
+
#include "RNOHCorePackage/ComponentBinders/ViewComponentJSIBinder.h"
|
|
29
|
+
|
|
30
|
+
namespace rnoh {
|
|
31
|
+
|
|
32
|
+
class PdfViewJSIBinder : public ViewComponentJSIBinder {
|
|
33
|
+
facebook::jsi::Object createNativeProps(facebook::jsi::Runtime &rt) override {
|
|
34
|
+
auto object = ViewComponentJSIBinder::createNativeProps(rt);
|
|
35
|
+
object.setProperty(rt, "source", "Source");
|
|
36
|
+
object.setProperty(rt, "path", "string");
|
|
37
|
+
object.setProperty(rt, "page", "int");
|
|
38
|
+
object.setProperty(rt, "scale", "float");
|
|
39
|
+
object.setProperty(rt, "minScale", "float");
|
|
40
|
+
object.setProperty(rt, "maxScale", "float");
|
|
41
|
+
object.setProperty(rt, "horizontal", "boolean");
|
|
42
|
+
object.setProperty(rt, "enablePaging", "boolean");
|
|
43
|
+
object.setProperty(rt, "enableRTL", "boolean");
|
|
44
|
+
object.setProperty(rt, "enableAnnotationRendering", "boolean");
|
|
45
|
+
object.setProperty(rt, "showsHorizontalScrollIndicator", "boolean");
|
|
46
|
+
object.setProperty(rt, "showsVerticalScrollIndicator", "boolean");
|
|
47
|
+
object.setProperty(rt, "scrollEnabled", "boolean");
|
|
48
|
+
object.setProperty(rt, "enableAntialiasing", "boolean");
|
|
49
|
+
object.setProperty(rt, "fitPolicy", "int");
|
|
50
|
+
object.setProperty(rt, "spacing", "int");
|
|
51
|
+
object.setProperty(rt, "password", "string");
|
|
52
|
+
object.setProperty(rt, "singlePage", "boolean");
|
|
53
|
+
return object;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
facebook::jsi::Object createBubblingEventTypes(facebook::jsi::Runtime &rt) override
|
|
57
|
+
{
|
|
58
|
+
return facebook::jsi::Object(rt);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
facebook::jsi::Object createDirectEventTypes(facebook::jsi::Runtime &rt) override
|
|
62
|
+
{
|
|
63
|
+
facebook::jsi::Object events(rt);
|
|
64
|
+
events.setProperty(rt, "topChange", createDirectEvent(rt, "onChange"));
|
|
65
|
+
return events;
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
} // namespace rnoh
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
#endif //HARMONY_PDFVIEWJSIBINDER_H
|
package/harmony/pdfview/build/default/cache/default/default@PackageHar/src/main/cpp/PdfViewPackage.h
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MIT License
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2024 Huawei Device Co., Ltd.
|
|
5
|
+
*
|
|
6
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
* in the Software without restriction, including without limitation the rights
|
|
9
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
* furnished to do so, subject to the following conditions:
|
|
12
|
+
*
|
|
13
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
* copies or substantial portions of the Software.
|
|
15
|
+
*
|
|
16
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
* SOFTWARE.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
#ifndef HARMONY_PDFVIEWPACKAGE_H
|
|
26
|
+
#define HARMONY_PDFVIEWPACKAGE_H
|
|
27
|
+
|
|
28
|
+
#include "RNOH/Package.h"
|
|
29
|
+
#include "ComponentDescriptors.h"
|
|
30
|
+
#include "PdfViewJSIBinder.h"
|
|
31
|
+
#include "PdfEventEmitRequestHandler.h"
|
|
32
|
+
|
|
33
|
+
namespace rnoh {
|
|
34
|
+
|
|
35
|
+
class PdfViewPackage : public Package {
|
|
36
|
+
public:
|
|
37
|
+
PdfViewPackage(Package::Context ctx) : Package(ctx) {}
|
|
38
|
+
|
|
39
|
+
std::vector<facebook::react::ComponentDescriptorProvider> createComponentDescriptorProviders() override {
|
|
40
|
+
return {facebook::react::concreteComponentDescriptorProvider<
|
|
41
|
+
facebook::react::RNPDFPdfViewComponentDescriptor>()};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
ComponentJSIBinderByString createComponentJSIBinderByName() override {
|
|
45
|
+
return {{"RTNPdfView", std::make_shared<PdfViewJSIBinder>()}};
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
EventEmitRequestHandlers createEventEmitRequestHandlers() override {
|
|
49
|
+
return {std::make_shared<PdfEventEmitRequestHandler>()};
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
} // namespace rnoh
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
#endif //HARMONY_CENTEREDTEXTPACKAGE_H
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MIT License
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2024 Huawei Device Co., Ltd.
|
|
5
|
+
*
|
|
6
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
* in the Software without restriction, including without limitation the rights
|
|
9
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
* furnished to do so, subject to the following conditions:
|
|
12
|
+
*
|
|
13
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
* copies or substantial portions of the Software.
|
|
15
|
+
*
|
|
16
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
* SOFTWARE.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
#include "Props.h"
|
|
26
|
+
#include <react/renderer/core/PropsParserContext.h>
|
|
27
|
+
#include <react/renderer/core/propsConversions.h>
|
|
28
|
+
|
|
29
|
+
namespace facebook {
|
|
30
|
+
namespace react {
|
|
31
|
+
|
|
32
|
+
RNPDFPdfViewProps::RNPDFPdfViewProps(
|
|
33
|
+
const PropsParserContext &context,
|
|
34
|
+
const RNPDFPdfViewProps &sourceProps,
|
|
35
|
+
const RawProps &rawProps): ViewProps(context, sourceProps, rawProps),
|
|
36
|
+
|
|
37
|
+
source(convertRawProp(context, rawProps, "source", sourceProps.source, {})),
|
|
38
|
+
path(convertRawProp(context, rawProps, "path", sourceProps.path, {})),
|
|
39
|
+
page(convertRawProp(context, rawProps, "page", sourceProps.page, {0})),
|
|
40
|
+
scale(convertRawProp(context, rawProps, "scale", sourceProps.scale, {0.0})),
|
|
41
|
+
minScale(convertRawProp(context, rawProps, "minScale", sourceProps.minScale, {0.0})),
|
|
42
|
+
maxScale(convertRawProp(context, rawProps, "maxScale", sourceProps.maxScale, {0.0})),
|
|
43
|
+
horizontal(convertRawProp(context, rawProps, "horizontal", sourceProps.horizontal, {false})),
|
|
44
|
+
enablePaging(convertRawProp(context, rawProps, "enablePaging", sourceProps.enablePaging, {false})),
|
|
45
|
+
enableRTL(convertRawProp(context, rawProps, "enableRTL", sourceProps.enableRTL, {false})),
|
|
46
|
+
enableAnnotationRendering(convertRawProp(context, rawProps, "enableAnnotationRendering", sourceProps.enableAnnotationRendering, {false})),
|
|
47
|
+
showsHorizontalScrollIndicator(convertRawProp(context, rawProps, "showsHorizontalScrollIndicator", sourceProps.showsHorizontalScrollIndicator, {false})),
|
|
48
|
+
showsVerticalScrollIndicator(convertRawProp(context, rawProps, "showsVerticalScrollIndicator", sourceProps.showsVerticalScrollIndicator, {false})),
|
|
49
|
+
scrollEnabled(convertRawProp(context, rawProps, "scrollEnabled", sourceProps.scrollEnabled, {false})),
|
|
50
|
+
enableAntialiasing(convertRawProp(context, rawProps, "enableAntialiasing", sourceProps.enableAntialiasing, {false})),
|
|
51
|
+
fitPolicy(convertRawProp(context, rawProps, "fitPolicy", sourceProps.fitPolicy, {0})),
|
|
52
|
+
spacing(convertRawProp(context, rawProps, "spacing", sourceProps.spacing, {0})),
|
|
53
|
+
password(convertRawProp(context, rawProps, "password", sourceProps.password, {})),
|
|
54
|
+
singlePage(convertRawProp(context, rawProps, "singlePage", sourceProps.singlePage, {false}))
|
|
55
|
+
{}
|
|
56
|
+
|
|
57
|
+
} // namespace react
|
|
58
|
+
} // namespace facebook
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MIT License
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2024 Huawei Device Co., Ltd.
|
|
5
|
+
*
|
|
6
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
* in the Software without restriction, including without limitation the rights
|
|
9
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
* furnished to do so, subject to the following conditions:
|
|
12
|
+
*
|
|
13
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
* copies or substantial portions of the Software.
|
|
15
|
+
*
|
|
16
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
* SOFTWARE.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
#pragma once
|
|
26
|
+
|
|
27
|
+
#include <jsi/jsi.h>
|
|
28
|
+
#include <react/renderer/components/view/ViewProps.h>
|
|
29
|
+
#include <react/renderer/core/PropsParserContext.h>
|
|
30
|
+
|
|
31
|
+
namespace facebook {
|
|
32
|
+
namespace react {
|
|
33
|
+
|
|
34
|
+
class JSI_EXPORT RNPDFPdfViewProps final : public ViewProps {
|
|
35
|
+
public:
|
|
36
|
+
RNPDFPdfViewProps() = default;
|
|
37
|
+
RNPDFPdfViewProps(const PropsParserContext& context, const RNPDFPdfViewProps &sourceProps, const RawProps &rawProps);
|
|
38
|
+
|
|
39
|
+
#pragma mark - Props
|
|
40
|
+
folly::dynamic source{};
|
|
41
|
+
std::string path{};
|
|
42
|
+
int page{0};
|
|
43
|
+
Float scale{0.0};
|
|
44
|
+
Float minScale{0.0};
|
|
45
|
+
Float maxScale{0.0};
|
|
46
|
+
bool horizontal{false};
|
|
47
|
+
bool enablePaging{false};
|
|
48
|
+
bool enableRTL{false};
|
|
49
|
+
bool enableAnnotationRendering{false};
|
|
50
|
+
bool showsHorizontalScrollIndicator{false};
|
|
51
|
+
bool showsVerticalScrollIndicator{false};
|
|
52
|
+
bool scrollEnabled{false};
|
|
53
|
+
bool enableAntialiasing{false};
|
|
54
|
+
int fitPolicy{0};
|
|
55
|
+
int spacing{0};
|
|
56
|
+
std::string password{};
|
|
57
|
+
bool singlePage{false};
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
} // namespace react
|
|
61
|
+
} // namespace facebook
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MIT License
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2024 Huawei Device Co., Ltd.
|
|
5
|
+
*
|
|
6
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
* in the Software without restriction, including without limitation the rights
|
|
9
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
* furnished to do so, subject to the following conditions:
|
|
12
|
+
*
|
|
13
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
* copies or substantial portions of the Software.
|
|
15
|
+
*
|
|
16
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
* SOFTWARE.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
#include "RTNPdfViewSpecsJSI.h"
|
|
26
|
+
|
|
27
|
+
namespace facebook {
|
|
28
|
+
namespace react {
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
} // namespace react
|
|
34
|
+
} // namespace facebook
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MIT License
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2024 Huawei Device Co., Ltd.
|
|
5
|
+
*
|
|
6
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
* in the Software without restriction, including without limitation the rights
|
|
9
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
* furnished to do so, subject to the following conditions:
|
|
12
|
+
*
|
|
13
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
* copies or substantial portions of the Software.
|
|
15
|
+
*
|
|
16
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
* SOFTWARE.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
#pragma once
|
|
26
|
+
|
|
27
|
+
#include <ReactCommon/TurboModule.h>
|
|
28
|
+
#include <react/bridging/Bridging.h>
|
|
29
|
+
|
|
30
|
+
namespace facebook {
|
|
31
|
+
namespace react {
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
} // namespace react
|
|
36
|
+
} // namespace facebook
|