@react-native-ohos/react-native-custom-keyboard 1.0.4-rc.1 → 1.0.4-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.
Files changed (41) hide show
  1. package/OAT.xml +51 -0
  2. package/README.md +8 -4
  3. package/harmony/custom_keyboard/BuildProfile.ets +1 -7
  4. package/harmony/custom_keyboard/Index.ets +2 -6
  5. package/harmony/custom_keyboard/hvigorfile.ts +0 -6
  6. package/harmony/custom_keyboard/oh-package-lock.json5 +18 -0
  7. package/harmony/custom_keyboard/oh-package.json5 +1 -1
  8. package/harmony/custom_keyboard/src/main/cpp/CMakeLists.txt +1 -1
  9. package/harmony/custom_keyboard/src/main/cpp/CustomKeyboardPackage.cpp +4 -8
  10. package/harmony/custom_keyboard/src/main/cpp/CustomKeyboardPackage.h +3 -9
  11. package/harmony/custom_keyboard/src/main/cpp/CustomKeyboardTurboModuleSpec.cpp +130 -106
  12. package/harmony/custom_keyboard/src/main/cpp/CustomKeyboardTurboModuleSpec.h +1 -8
  13. package/harmony/custom_keyboard/src/main/cpp/generated/{custom_keyboard/RNOH/generated/BaseReactNativeOhTplReactNativeCustomKeyboardPackage.h → RNOH/generated/BaseReactNativeCustomKeyboardPackage.h} +65 -75
  14. package/harmony/custom_keyboard/src/main/cpp/generated/{custom_keyboard/RNOH → RNOH}/generated/turbo_modules/CustomKeyboardNativeModule.cpp +23 -28
  15. package/harmony/custom_keyboard/src/main/cpp/generated/{custom_keyboard/RNOH → RNOH}/generated/turbo_modules/CustomKeyboardNativeModule.h +16 -21
  16. package/harmony/custom_keyboard/src/main/cpp/generated/{custom_keyboard/react/renderer/components/custom_keyboard → react/renderer/components/react_native_custom_keyboard}/ComponentDescriptors.h +22 -24
  17. package/harmony/custom_keyboard/src/main/cpp/generated/{custom_keyboard/react/renderer/components/custom_keyboard → react/renderer/components/react_native_custom_keyboard}/EventEmitters.cpp +18 -16
  18. package/harmony/custom_keyboard/src/main/cpp/generated/{custom_keyboard/react/renderer/components/custom_keyboard → react/renderer/components/react_native_custom_keyboard}/EventEmitters.h +19 -17
  19. package/harmony/custom_keyboard/src/main/cpp/generated/{custom_keyboard/react/renderer/components/custom_keyboard → react/renderer/components/react_native_custom_keyboard}/Props.cpp +21 -19
  20. package/harmony/custom_keyboard/src/main/cpp/generated/{custom_keyboard/react/renderer/components/custom_keyboard → react/renderer/components/react_native_custom_keyboard}/Props.h +20 -18
  21. package/harmony/custom_keyboard/src/main/cpp/generated/{custom_keyboard/react/renderer/components/custom_keyboard → react/renderer/components/react_native_custom_keyboard}/ShadowNodes.cpp +19 -17
  22. package/harmony/custom_keyboard/src/main/cpp/generated/{custom_keyboard/react/renderer/components/custom_keyboard → react/renderer/components/react_native_custom_keyboard}/ShadowNodes.h +25 -23
  23. package/harmony/custom_keyboard/src/main/cpp/generated/{custom_keyboard/react/renderer/components/custom_keyboard → react/renderer/components/react_native_custom_keyboard}/States.cpp +18 -16
  24. package/harmony/custom_keyboard/src/main/cpp/generated/{custom_keyboard/react/renderer/components/custom_keyboard → react/renderer/components/react_native_custom_keyboard}/States.h +23 -19
  25. package/harmony/custom_keyboard/src/main/ets/{RNCustomKeyboardPackage.ts → RNCustomKeyboardPackage.ets} +2 -2
  26. package/harmony/custom_keyboard/src/main/ets/generated/components/ts.ts +5 -5
  27. package/harmony/custom_keyboard/src/main/ets/generated/index.ets +5 -8
  28. package/harmony/custom_keyboard/src/main/ets/generated/ts.ts +6 -9
  29. package/harmony/custom_keyboard/src/main/ets/generated/turboModules/CustomKeyboardNativeModule.ts +28 -32
  30. package/harmony/custom_keyboard/src/main/ets/generated/turboModules/ts.ts +5 -8
  31. package/harmony/custom_keyboard/ts.ets +2 -0
  32. package/harmony/custom_keyboard.har +0 -0
  33. package/index.d.ts +0 -6
  34. package/index.js +3 -4
  35. package/package.json +14 -16
  36. package/src/specs/v2/NativeCustomKeyboard.ts +0 -6
  37. package/tsconfig.json +13 -0
  38. package/LICENSE +0 -8
  39. package/README.OpenSource +0 -11
  40. package/harmony/custom_keyboard/ts.ts +0 -8
  41. package/img/rntpc_react-native-custom-keyboard.png +0 -0
@@ -1,75 +1,65 @@
1
- /**
2
- * This code was generated by "react-native codegen-harmony"
3
- *
4
- * Do not edit this file as changes may cause incorrect behavior and will be
5
- * lost once the code is regenerated.
6
- */
7
-
8
- #pragma once
9
-
10
- #include "RNOH/Package.h"
11
- #include "RNOH/ArkTSTurboModule.h"
12
- #include "RNOH/generated/turbo_modules/CustomKeyboardNativeModule.h"
13
-
14
- namespace rnoh {
15
-
16
- class BaseReactNativeOhosReactNativeCustomKeyboardPackageTurboModuleFactoryDelegate : public TurboModuleFactoryDelegate {
17
- public:
18
- SharedTurboModule createTurboModule(Context ctx, const std::string &name) const override {
19
- if (name == "CustomKeyboardNativeModule") {
20
- return std::make_shared<CustomKeyboardNativeModule>(ctx, name);
21
- }
22
- return nullptr;
23
- };
24
- };
25
-
26
- class BaseReactNativeOhosReactNativeCustomKeyboardPackageEventEmitRequestHandler : public EventEmitRequestHandler {
27
- public:
28
- void handleEvent(Context const &ctx) override {
29
- auto eventEmitter = ctx.shadowViewRegistry->getEventEmitter<facebook::react::EventEmitter>(ctx.tag);
30
- auto componentName = ctx.shadowViewRegistry->getComponentName(ctx.tag);
31
-
32
- if (eventEmitter == nullptr) {
33
- return;
34
- }
35
-
36
- std::vector<std::string> supportedComponentNames = {
37
- };
38
-
39
- std::vector<std::string> supportedEventNames = {
40
- };
41
-
42
- if (std::find(supportedComponentNames.begin(), supportedComponentNames.end(), componentName) != supportedComponentNames.end() &&
43
- std::find(supportedEventNames.begin(), supportedEventNames.end(), ctx.eventName) != supportedEventNames.end()) {
44
- eventEmitter->dispatchEvent(ctx.eventName, ArkJS(ctx.env).getDynamic(ctx.payload));
45
- }
46
- }
47
- };
48
-
49
-
50
- class BaseReactNativeOhosReactNativeCustomKeyboardPackage : public Package {
51
- public:
52
- BaseReactNativeOhosReactNativeCustomKeyboardPackage(Package::Context ctx) : Package(ctx){};
53
-
54
- std::unique_ptr<TurboModuleFactoryDelegate> createTurboModuleFactoryDelegate() override {
55
- return std::make_unique<BaseReactNativeOhosReactNativeCustomKeyboardPackageTurboModuleFactoryDelegate>();
56
- }
57
-
58
- std::vector<facebook::react::ComponentDescriptorProvider> createComponentDescriptorProviders() override {
59
- return {
60
- };
61
- }
62
-
63
- ComponentJSIBinderByString createComponentJSIBinderByName() override {
64
- return {
65
- };
66
- };
67
-
68
- EventEmitRequestHandlers createEventEmitRequestHandlers() override {
69
- return {
70
- std::make_shared<BaseReactNativeOhosReactNativeCustomKeyboardPackageEventEmitRequestHandler>(),
71
- };
72
- }
73
- };
74
-
75
- } // namespace rnoh
1
+ /**
2
+ * This code was generated by "react-native codegen-lib-harmony"
3
+ */
4
+
5
+ #pragma once
6
+
7
+ #include "RNOH/Package.h"
8
+ #include "RNOH/ArkTSTurboModule.h"
9
+ #include "RNOH/generated/turbo_modules/CustomKeyboardNativeModule.h"
10
+
11
+ namespace rnoh {
12
+
13
+ class BaseReactNativeCustomKeyboardPackageTurboModuleFactoryDelegate : public TurboModuleFactoryDelegate {
14
+ public:
15
+ SharedTurboModule createTurboModule(Context ctx, const std::string &name) const override {
16
+ if (name == "CustomKeyboardNativeModule") {
17
+ return std::make_shared<CustomKeyboardNativeModule>(ctx, name);
18
+ }
19
+ return nullptr;
20
+ };
21
+ };
22
+
23
+ class BaseReactNativeCustomKeyboardPackageEventEmitRequestHandler : public EventEmitRequestHandler {
24
+ public:
25
+ void handleEvent(Context const &ctx) override {
26
+ auto eventEmitter = ctx.shadowViewRegistry->getEventEmitter<facebook::react::EventEmitter>(ctx.tag);
27
+ if (eventEmitter == nullptr) {
28
+ return;
29
+ }
30
+
31
+ std::vector<std::string> supportedEventNames = {
32
+ };
33
+ if (std::find(supportedEventNames.begin(), supportedEventNames.end(), ctx.eventName) != supportedEventNames.end()) {
34
+ eventEmitter->dispatchEvent(ctx.eventName, ArkJS(ctx.env).getDynamic(ctx.payload));
35
+ }
36
+ }
37
+ };
38
+
39
+
40
+ class BaseReactNativeCustomKeyboardPackage : public Package {
41
+ public:
42
+ BaseReactNativeCustomKeyboardPackage(Package::Context ctx) : Package(ctx){};
43
+
44
+ std::unique_ptr<TurboModuleFactoryDelegate> createTurboModuleFactoryDelegate() override {
45
+ return std::make_unique<BaseReactNativeCustomKeyboardPackageTurboModuleFactoryDelegate>();
46
+ }
47
+
48
+ std::vector<facebook::react::ComponentDescriptorProvider> createComponentDescriptorProviders() override {
49
+ return {
50
+ };
51
+ }
52
+
53
+ ComponentJSIBinderByString createComponentJSIBinderByName() override {
54
+ return {
55
+ };
56
+ };
57
+
58
+ EventEmitRequestHandlers createEventEmitRequestHandlers() override {
59
+ return {
60
+ std::make_shared<BaseReactNativeCustomKeyboardPackageEventEmitRequestHandler>(),
61
+ };
62
+ }
63
+ };
64
+
65
+ } // namespace rnoh
@@ -1,28 +1,23 @@
1
- /**
2
- * This code was generated by "react-native codegen-harmony"
3
- *
4
- * Do not edit this file as changes may cause incorrect behavior and will be
5
- * lost once the code is regenerated.
6
- *
7
- * @generatorVersion: 2
8
- */
9
-
10
- #include "CustomKeyboardNativeModule.h"
11
-
12
- namespace rnoh {
13
- using namespace facebook;
14
-
15
- CustomKeyboardNativeModule::CustomKeyboardNativeModule(const ArkTSTurboModule::Context ctx, const std::string name) : ArkTSTurboModule(ctx, name) {
16
- methodMap_ = {
17
- ARK_METHOD_METADATA(install, 2),
18
- ARK_METHOD_METADATA(uninstall, 1),
19
- ARK_METHOD_METADATA(insertText, 2),
20
- ARK_METHOD_METADATA(backSpace, 1),
21
- ARK_METHOD_METADATA(doDelete, 1),
22
- ARK_METHOD_METADATA(moveLeft, 1),
23
- ARK_METHOD_METADATA(moveRight, 1),
24
- ARK_METHOD_METADATA(switchSystemKeyboard, 1),
25
- };
26
- }
27
-
28
- } // namespace rnoh
1
+ /**
2
+ * This code was generated by "react-native codegen-lib-harmony"
3
+ */
4
+
5
+ #include "CustomKeyboardNativeModule.h"
6
+
7
+ namespace rnoh {
8
+ using namespace facebook;
9
+
10
+ CustomKeyboardNativeModule::CustomKeyboardNativeModule(const ArkTSTurboModule::Context ctx, const std::string name) : ArkTSTurboModule(ctx, name) {
11
+ methodMap_ = {
12
+ ARK_METHOD_METADATA(install, 2),
13
+ ARK_METHOD_METADATA(uninstall, 1),
14
+ ARK_METHOD_METADATA(insertText, 2),
15
+ ARK_METHOD_METADATA(backSpace, 1),
16
+ ARK_METHOD_METADATA(doDelete, 1),
17
+ ARK_METHOD_METADATA(moveLeft, 1),
18
+ ARK_METHOD_METADATA(moveRight, 1),
19
+ ARK_METHOD_METADATA(switchSystemKeyboard, 1),
20
+ };
21
+ }
22
+
23
+ } // namespace rnoh
@@ -1,21 +1,16 @@
1
- /**
2
- * This code was generated by "react-native codegen-harmony"
3
- *
4
- * Do not edit this file as changes may cause incorrect behavior and will be
5
- * lost once the code is regenerated.
6
- *
7
- * @generatorVersion: 2
8
- */
9
-
10
- #pragma once
11
-
12
- #include "RNOH/ArkTSTurboModule.h"
13
-
14
- namespace rnoh {
15
-
16
- class JSI_EXPORT CustomKeyboardNativeModule : public ArkTSTurboModule {
17
- public:
18
- CustomKeyboardNativeModule(const ArkTSTurboModule::Context ctx, const std::string name);
19
- };
20
-
21
- } // namespace rnoh
1
+ /**
2
+ * This code was generated by "react-native codegen-lib-harmony"
3
+ */
4
+
5
+ #pragma once
6
+
7
+ #include "RNOH/ArkTSTurboModule.h"
8
+
9
+ namespace rnoh {
10
+
11
+ class JSI_EXPORT CustomKeyboardNativeModule : public ArkTSTurboModule {
12
+ public:
13
+ CustomKeyboardNativeModule(const ArkTSTurboModule::Context ctx, const std::string name);
14
+ };
15
+
16
+ } // namespace rnoh
@@ -1,24 +1,22 @@
1
-
2
- /**
3
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
- *
5
- * Do not edit this file as changes may cause incorrect behavior and will be lost
6
- * once the code is regenerated.
7
- *
8
- * @generated by codegen project: GenerateComponentDescriptorH.js
9
- */
10
-
11
- #pragma once
12
-
13
- #include "ShadowNodes.h"
14
- #include <react/renderer/core/ConcreteComponentDescriptor.h>
15
- #include <react/renderer/componentregistry/ComponentDescriptorProviderRegistry.h>
16
-
17
- namespace facebook::react {
18
-
19
-
20
-
21
- void _react_native_ohos_react_native_custom_keyboard_registerComponentDescriptorsFromCodegen(
22
- std::shared_ptr<const ComponentDescriptorProviderRegistry> registry);
23
-
24
- } // namespace facebook::react
1
+
2
+ /**
3
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
+ *
5
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
6
+ * once the code is regenerated.
7
+ *
8
+ * @generated by codegen project: GenerateComponentDescriptorH.js
9
+ */
10
+
11
+ #pragma once
12
+
13
+ #include <react/renderer/components/react_native_custom_keyboard/ShadowNodes.h>
14
+ #include <react/renderer/core/ConcreteComponentDescriptor.h>
15
+
16
+ namespace facebook {
17
+ namespace react {
18
+
19
+
20
+
21
+ } // namespace react
22
+ } // namespace facebook
@@ -1,16 +1,18 @@
1
-
2
- /**
3
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
- *
5
- * Do not edit this file as changes may cause incorrect behavior and will be lost
6
- * once the code is regenerated.
7
- *
8
- * @generated by codegen project: GenerateEventEmitterCpp.js
9
- */
10
-
11
- #include "EventEmitters.h"
12
-
13
-
14
- namespace facebook::react {
15
-
16
- } // namespace facebook::react
1
+
2
+ /**
3
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
+ *
5
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
6
+ * once the code is regenerated.
7
+ *
8
+ * @generated by codegen project: GenerateEventEmitterCpp.js
9
+ */
10
+
11
+ #include <react/renderer/components/react_native_custom_keyboard/EventEmitters.h>
12
+
13
+
14
+ namespace facebook {
15
+ namespace react {
16
+
17
+ } // namespace react
18
+ } // namespace facebook
@@ -1,17 +1,19 @@
1
-
2
- /**
3
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
- *
5
- * Do not edit this file as changes may cause incorrect behavior and will be lost
6
- * once the code is regenerated.
7
- *
8
- * @generated by codegen project: GenerateEventEmitterH.js
9
- */
10
- #pragma once
11
-
12
- #include <react/renderer/components/view/ViewEventEmitter.h>
13
-
14
-
15
- namespace facebook::react {
16
-
17
- } // namespace facebook::react
1
+
2
+ /**
3
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
+ *
5
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
6
+ * once the code is regenerated.
7
+ *
8
+ * @generated by codegen project: GenerateEventEmitterH.js
9
+ */
10
+ #pragma once
11
+
12
+ #include <react/renderer/components/view/ViewEventEmitter.h>
13
+
14
+
15
+ namespace facebook {
16
+ namespace react {
17
+
18
+ } // namespace react
19
+ } // namespace facebook
@@ -1,19 +1,21 @@
1
-
2
- /**
3
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
- *
5
- * Do not edit this file as changes may cause incorrect behavior and will be lost
6
- * once the code is regenerated.
7
- *
8
- * @generated by codegen project: GeneratePropsCpp.js
9
- */
10
-
11
- #include "Props.h"
12
- #include <react/renderer/core/PropsParserContext.h>
13
- #include <react/renderer/core/propsConversions.h>
14
-
15
- namespace facebook::react {
16
-
17
-
18
-
19
- } // namespace facebook::react
1
+
2
+ /**
3
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
+ *
5
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
6
+ * once the code is regenerated.
7
+ *
8
+ * @generated by codegen project: GeneratePropsCpp.js
9
+ */
10
+
11
+ #include <react/renderer/components/react_native_custom_keyboard/Props.h>
12
+ #include <react/renderer/core/PropsParserContext.h>
13
+ #include <react/renderer/core/propsConversions.h>
14
+
15
+ namespace facebook {
16
+ namespace react {
17
+
18
+
19
+
20
+ } // namespace react
21
+ } // namespace facebook
@@ -1,18 +1,20 @@
1
-
2
- /**
3
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
- *
5
- * Do not edit this file as changes may cause incorrect behavior and will be lost
6
- * once the code is regenerated.
7
- *
8
- * @generated by codegen project: GeneratePropsH.js
9
- */
10
- #pragma once
11
-
12
-
13
-
14
- namespace facebook::react {
15
-
16
-
17
-
18
- } // namespace facebook::react
1
+
2
+ /**
3
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
+ *
5
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
6
+ * once the code is regenerated.
7
+ *
8
+ * @generated by codegen project: GeneratePropsH.js
9
+ */
10
+ #pragma once
11
+
12
+
13
+
14
+ namespace facebook {
15
+ namespace react {
16
+
17
+
18
+
19
+ } // namespace react
20
+ } // namespace facebook
@@ -1,17 +1,19 @@
1
-
2
- /**
3
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
- *
5
- * Do not edit this file as changes may cause incorrect behavior and will be lost
6
- * once the code is regenerated.
7
- *
8
- * @generated by codegen project: GenerateShadowNodeCpp.js
9
- */
10
-
11
- #include "ShadowNodes.h"
12
-
13
- namespace facebook::react {
14
-
15
-
16
-
17
- } // namespace facebook::react
1
+
2
+ /**
3
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
+ *
5
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
6
+ * once the code is regenerated.
7
+ *
8
+ * @generated by codegen project: GenerateShadowNodeCpp.js
9
+ */
10
+
11
+ #include <react/renderer/components/react_native_custom_keyboard/ShadowNodes.h>
12
+
13
+ namespace facebook {
14
+ namespace react {
15
+
16
+
17
+
18
+ } // namespace react
19
+ } // namespace facebook
@@ -1,23 +1,25 @@
1
-
2
- /**
3
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
- *
5
- * Do not edit this file as changes may cause incorrect behavior and will be lost
6
- * once the code is regenerated.
7
- *
8
- * @generated by codegen project: GenerateShadowNodeH.js
9
- */
10
-
11
- #pragma once
12
-
13
- #include "EventEmitters.h"
14
- #include "Props.h"
15
- #include "States.h"
16
- #include <react/renderer/components/view/ConcreteViewShadowNode.h>
17
- #include <jsi/jsi.h>
18
-
19
- namespace facebook::react {
20
-
21
-
22
-
23
- } // namespace facebook::react
1
+
2
+ /**
3
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
+ *
5
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
6
+ * once the code is regenerated.
7
+ *
8
+ * @generated by codegen project: GenerateShadowNodeH.js
9
+ */
10
+
11
+ #pragma once
12
+
13
+ #include <react/renderer/components/react_native_custom_keyboard/EventEmitters.h>
14
+ #include <react/renderer/components/react_native_custom_keyboard/Props.h>
15
+ #include <react/renderer/components/react_native_custom_keyboard/States.h>
16
+ #include <react/renderer/components/view/ConcreteViewShadowNode.h>
17
+ #include <jsi/jsi.h>
18
+
19
+ namespace facebook {
20
+ namespace react {
21
+
22
+
23
+
24
+ } // namespace react
25
+ } // namespace facebook
@@ -1,16 +1,18 @@
1
-
2
- /**
3
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
- *
5
- * Do not edit this file as changes may cause incorrect behavior and will be lost
6
- * once the code is regenerated.
7
- *
8
- * @generated by codegen project: GenerateStateCpp.js
9
- */
10
- #include "States.h"
11
-
12
- namespace facebook::react {
13
-
14
-
15
-
16
- } // namespace facebook::react
1
+
2
+ /**
3
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
+ *
5
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
6
+ * once the code is regenerated.
7
+ *
8
+ * @generated by codegen project: GenerateStateCpp.js
9
+ */
10
+ #include <react/renderer/components/react_native_custom_keyboard/States.h>
11
+
12
+ namespace facebook {
13
+ namespace react {
14
+
15
+
16
+
17
+ } // namespace react
18
+ } // namespace facebook
@@ -1,19 +1,23 @@
1
- /**
2
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3
- *
4
- * Do not edit this file as changes may cause incorrect behavior and will be lost
5
- * once the code is regenerated.
6
- *
7
- * @generated by codegen project: GenerateStateH.js
8
- */
9
- #pragma once
10
-
11
- #ifdef ANDROID
12
- #include <folly/dynamic.h>
13
- #endif
14
-
15
- namespace facebook::react {
16
-
17
-
18
-
19
- } // namespace facebook::react
1
+ /**
2
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3
+ *
4
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
5
+ * once the code is regenerated.
6
+ *
7
+ * @generated by codegen project: GenerateStateH.js
8
+ */
9
+ #pragma once
10
+
11
+ #ifdef ANDROID
12
+ #include <folly/dynamic.h>
13
+ #include <react/renderer/mapbuffer/MapBuffer.h>
14
+ #include <react/renderer/mapbuffer/MapBufferBuilder.h>
15
+ #endif
16
+
17
+ namespace facebook {
18
+ namespace react {
19
+
20
+
21
+
22
+ } // namespace react
23
+ } // namespace facebook
@@ -22,7 +22,7 @@
22
22
  * SOFTWARE.
23
23
  */
24
24
 
25
- import { RNPackage, TurboModulesFactory } from '@rnoh/react-native-openharmony/ts';
25
+ import { RNOHPackage, TurboModulesFactory } from '@rnoh/react-native-openharmony';
26
26
  import type { TurboModule, TurboModuleContext } from '@rnoh/react-native-openharmony/ts';
27
27
  import { TM } from './generated/ts'
28
28
  import { RNCustomKeyboardTurboModule } from './RNCustomKeyboardTurboModule';
@@ -40,7 +40,7 @@ class RNCustomKeyboardTurboModuleFactory extends TurboModulesFactory {
40
40
  }
41
41
  }
42
42
 
43
- export class RNCustomKeyboardPackage extends RNPackage {
43
+ export class RNCustomKeyboardPackage extends RNOHPackage {
44
44
  createTurboModulesFactory(ctx: TurboModuleContext): TurboModulesFactory {
45
45
  return new RNCustomKeyboardTurboModuleFactory(ctx);
46
46
  }
@@ -1,5 +1,5 @@
1
-
2
- /**
3
- */
4
-
5
- export {}
1
+
2
+ /**
3
+ */
4
+
5
+ export {}
@@ -1,8 +1,5 @@
1
- /**
2
- * This code was generated by "react-native codegen-harmony"
3
- *
4
- * Do not edit this file as changes may cause incorrect behavior and will be
5
- * lost once the code is regenerated.
6
- */
7
-
8
- export * from "./ts"
1
+ /**
2
+ * This code was generated by "react-native codegen-lib-harmony"
3
+ */
4
+
5
+ export * from "./ts"