@react-native-ohos/react-native-custom-keyboard 1.0.4-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/LICENSE +8 -0
- package/README.OpenSource +11 -0
- package/README.md +13 -0
- package/harmony/custom_keyboard/BuildProfile.ets +23 -0
- package/harmony/custom_keyboard/Index.ets +7 -0
- package/harmony/custom_keyboard/build-profile.json5 +28 -0
- package/harmony/custom_keyboard/gitignore +6 -0
- package/harmony/custom_keyboard/hvigorfile.ts +12 -0
- package/harmony/custom_keyboard/obfuscation-rule.txt +18 -0
- package/harmony/custom_keyboard/oh-package.json5 +11 -0
- package/harmony/custom_keyboard/src/main/cpp/CMakeLists.txt +9 -0
- package/harmony/custom_keyboard/src/main/cpp/CustomKeyboardPackage.cpp +25 -0
- package/harmony/custom_keyboard/src/main/cpp/CustomKeyboardPackage.h +18 -0
- package/harmony/custom_keyboard/src/main/cpp/CustomKeyboardTurboModuleSpec.cpp +366 -0
- package/harmony/custom_keyboard/src/main/cpp/CustomKeyboardTurboModuleSpec.h +46 -0
- package/harmony/custom_keyboard/src/main/cpp/generated/custom_keyboard/RNOH/generated/BaseReactNativeOhTplReactNativeCustomKeyboardPackage.h +75 -0
- package/harmony/custom_keyboard/src/main/cpp/generated/custom_keyboard/RNOH/generated/turbo_modules/CustomKeyboardNativeModule.cpp +28 -0
- package/harmony/custom_keyboard/src/main/cpp/generated/custom_keyboard/RNOH/generated/turbo_modules/CustomKeyboardNativeModule.h +21 -0
- package/harmony/custom_keyboard/src/main/cpp/generated/custom_keyboard/react/renderer/components/custom_keyboard/ComponentDescriptors.h +24 -0
- package/harmony/custom_keyboard/src/main/cpp/generated/custom_keyboard/react/renderer/components/custom_keyboard/EventEmitters.cpp +16 -0
- package/harmony/custom_keyboard/src/main/cpp/generated/custom_keyboard/react/renderer/components/custom_keyboard/EventEmitters.h +17 -0
- package/harmony/custom_keyboard/src/main/cpp/generated/custom_keyboard/react/renderer/components/custom_keyboard/Props.cpp +19 -0
- package/harmony/custom_keyboard/src/main/cpp/generated/custom_keyboard/react/renderer/components/custom_keyboard/Props.h +18 -0
- package/harmony/custom_keyboard/src/main/cpp/generated/custom_keyboard/react/renderer/components/custom_keyboard/ShadowNodes.cpp +17 -0
- package/harmony/custom_keyboard/src/main/cpp/generated/custom_keyboard/react/renderer/components/custom_keyboard/ShadowNodes.h +23 -0
- package/harmony/custom_keyboard/src/main/cpp/generated/custom_keyboard/react/renderer/components/custom_keyboard/States.cpp +16 -0
- package/harmony/custom_keyboard/src/main/cpp/generated/custom_keyboard/react/renderer/components/custom_keyboard/States.h +19 -0
- package/harmony/custom_keyboard/src/main/ets/Logger.ts +64 -0
- package/harmony/custom_keyboard/src/main/ets/RNCustomKeyboardPackage.ts +47 -0
- package/harmony/custom_keyboard/src/main/ets/RNCustomKeyboardTurboModule.ts +64 -0
- package/harmony/custom_keyboard/src/main/ets/generated/components/ts.ts +5 -0
- package/harmony/custom_keyboard/src/main/ets/generated/index.ets +8 -0
- package/harmony/custom_keyboard/src/main/ets/generated/ts.ts +9 -0
- package/harmony/custom_keyboard/src/main/ets/generated/turboModules/CustomKeyboardNativeModule.ts +32 -0
- package/harmony/custom_keyboard/src/main/ets/generated/turboModules/ts.ts +8 -0
- package/harmony/custom_keyboard/src/main/module.json5 +11 -0
- package/harmony/custom_keyboard/ts.ts +8 -0
- package/harmony/custom_keyboard.har +0 -0
- package/img/rntpc_react-native-custom-keyboard.png +0 -0
- package/index.d.ts +17 -0
- package/index.js +66 -0
- package/package.json +44 -0
- package/src/specs/v2/NativeCustomKeyboard.ts +21 -0
package/package.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@react-native-ohos/react-native-custom-keyboard",
|
|
3
|
+
"version": "1.0.4-rc.1",
|
|
4
|
+
"description": "",
|
|
5
|
+
"nativePackage": true,
|
|
6
|
+
"main": "index.js",
|
|
7
|
+
"types": "index.d.ts",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
10
|
+
},
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git"
|
|
13
|
+
},
|
|
14
|
+
"keywords": [
|
|
15
|
+
"react-native",
|
|
16
|
+
"ios",
|
|
17
|
+
"android",
|
|
18
|
+
"harmony",
|
|
19
|
+
"react-component"
|
|
20
|
+
],
|
|
21
|
+
"author": "",
|
|
22
|
+
"license": "",
|
|
23
|
+
"peerDependencies": {
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"typescript": "^4.6.2"
|
|
27
|
+
},
|
|
28
|
+
"files": [
|
|
29
|
+
"src",
|
|
30
|
+
"img",
|
|
31
|
+
"harmony",
|
|
32
|
+
"harmony/custom_keyboard.har",
|
|
33
|
+
"index.d.ts",
|
|
34
|
+
"index.harmony.js",
|
|
35
|
+
"cpp",
|
|
36
|
+
"!lib/typescript/example",
|
|
37
|
+
"!**/__tests__",
|
|
38
|
+
"!**/__fixtures__",
|
|
39
|
+
"!**/__mocks__"
|
|
40
|
+
],
|
|
41
|
+
"harmony": {
|
|
42
|
+
"alias": "react-native-custom-keyboard"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2025 Huawei Device Co., Ltd. All rights reserved
|
|
3
|
+
* Use of this source code is governed by a MIT license that can be
|
|
4
|
+
* found in the LICENSE file.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import type { TurboModule } from 'react-native/Libraries/TurboModule/RCTExport';
|
|
8
|
+
import { TurboModuleRegistry } from 'react-native';
|
|
9
|
+
|
|
10
|
+
export interface Spec extends TurboModule {
|
|
11
|
+
install: (tag: number, type: string) => void;
|
|
12
|
+
uninstall: (tag: number) => void;
|
|
13
|
+
insertText: (tag: number, text: string) => void;
|
|
14
|
+
backSpace: (tag: number) => void;
|
|
15
|
+
doDelete: (tag: number) => void;
|
|
16
|
+
moveLeft: (tag: number) => void;
|
|
17
|
+
moveRight: (tag: number) => void;
|
|
18
|
+
switchSystemKeyboard: (tag: number) => void;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export default TurboModuleRegistry.get<Spec>('CustomKeyboardNativeModule') as Spec | null;
|