@react-native-ohos/react-native-reanimated 3.18.1-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.
Files changed (113) hide show
  1. package/harmony/reanimated/BuildProfile.ets +17 -0
  2. package/harmony/reanimated/build-profile.json5 +12 -0
  3. package/harmony/reanimated/hvigorfile.ts +5 -0
  4. package/harmony/reanimated/index.ets +5 -0
  5. package/harmony/reanimated/oh-package.json5 +12 -0
  6. package/harmony/reanimated/src/main/cpp/CMakeLists.txt +72 -0
  7. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/AnimatedSensor/AnimatedSensorModule.cpp +86 -0
  8. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/AnimatedSensor/AnimatedSensorModule.h +47 -0
  9. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/Fabric/PropsRegistry.cpp +68 -0
  10. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/Fabric/PropsRegistry.h +68 -0
  11. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/Fabric/ReanimatedCommitHook.cpp +101 -0
  12. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/Fabric/ReanimatedCommitHook.h +51 -0
  13. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/Fabric/ReanimatedCommitShadowNode.h +49 -0
  14. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/Fabric/ReanimatedMountHook.cpp +87 -0
  15. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/Fabric/ReanimatedMountHook.h +33 -0
  16. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/Fabric/ShadowTreeCloner.cpp +95 -0
  17. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/Fabric/ShadowTreeCloner.h +29 -0
  18. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/LayoutAnimations/LayoutAnimationType.h +9 -0
  19. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/LayoutAnimations/LayoutAnimationsManager.cpp +232 -0
  20. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/LayoutAnimations/LayoutAnimationsManager.h +90 -0
  21. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/LayoutAnimations/LayoutAnimationsProxy.cpp +870 -0
  22. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/LayoutAnimations/LayoutAnimationsProxy.h +147 -0
  23. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/LayoutAnimations/LayoutAnimationsUtils.cpp +91 -0
  24. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/LayoutAnimations/LayoutAnimationsUtils.h +176 -0
  25. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/NativeModules/ReanimatedModuleProxy.cpp +971 -0
  26. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/NativeModules/ReanimatedModuleProxy.h +252 -0
  27. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/NativeModules/ReanimatedModuleProxySpec.cpp +231 -0
  28. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/NativeModules/ReanimatedModuleProxySpec.h +109 -0
  29. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/RuntimeDecorators/RNRuntimeDecorator.cpp +56 -0
  30. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/RuntimeDecorators/RNRuntimeDecorator.h +20 -0
  31. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/RuntimeDecorators/UIRuntimeDecorator.cpp +70 -0
  32. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/RuntimeDecorators/UIRuntimeDecorator.h +35 -0
  33. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/Tools/CollectionUtils.h +14 -0
  34. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/Tools/FeaturesConfig.cpp +5 -0
  35. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/Tools/FeaturesConfig.h +19 -0
  36. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/Tools/PlatformDepMethodsHolder.h +98 -0
  37. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/Tools/ReanimatedSystraceSection.h +135 -0
  38. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/NativeModules/WorkletsModuleProxy.cpp +47 -0
  39. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/NativeModules/WorkletsModuleProxy.h +59 -0
  40. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/NativeModules/WorkletsModuleProxySpec.cpp +27 -0
  41. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/NativeModules/WorkletsModuleProxySpec.h +25 -0
  42. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/Registries/EventHandlerRegistry.cpp +94 -0
  43. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/Registries/EventHandlerRegistry.h +49 -0
  44. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/Registries/WorkletRuntimeRegistry.cpp +8 -0
  45. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/Registries/WorkletRuntimeRegistry.h +39 -0
  46. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/SharedItems/Shareables.cpp +326 -0
  47. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/SharedItems/Shareables.h +345 -0
  48. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/Tools/AsyncQueue.cpp +52 -0
  49. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/Tools/AsyncQueue.h +35 -0
  50. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/Tools/Defs.h +10 -0
  51. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/Tools/JSISerializer.cpp +342 -0
  52. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/Tools/JSISerializer.h +47 -0
  53. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/Tools/JSLogger.cpp +16 -0
  54. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/Tools/JSLogger.h +20 -0
  55. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/Tools/JSScheduler.cpp +20 -0
  56. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/Tools/JSScheduler.h +29 -0
  57. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/Tools/PlatformLogger.h +16 -0
  58. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/Tools/ReanimatedJSIUtils.cpp +26 -0
  59. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/Tools/ReanimatedJSIUtils.h +199 -0
  60. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/Tools/ReanimatedVersion.cpp +95 -0
  61. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/Tools/ReanimatedVersion.h +19 -0
  62. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/Tools/SingleInstanceChecker.h +72 -0
  63. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/Tools/ThreadSafeQueue.h +49 -0
  64. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/Tools/UIScheduler.cpp +20 -0
  65. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/Tools/UIScheduler.h +22 -0
  66. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/Tools/WorkletEventHandler.cpp +29 -0
  67. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/Tools/WorkletEventHandler.h +41 -0
  68. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/WorkletRuntime/RNRuntimeWorkletDecorator.cpp +16 -0
  69. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/WorkletRuntime/RNRuntimeWorkletDecorator.h +19 -0
  70. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/WorkletRuntime/ReanimatedHermesRuntime.cpp +112 -0
  71. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/WorkletRuntime/ReanimatedHermesRuntime.h +127 -0
  72. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/WorkletRuntime/ReanimatedRuntime.cpp +53 -0
  73. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/WorkletRuntime/ReanimatedRuntime.h +22 -0
  74. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/WorkletRuntime/RuntimeInitialization.md +191 -0
  75. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/WorkletRuntime/WorkletRuntime.cpp +155 -0
  76. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/WorkletRuntime/WorkletRuntime.h +90 -0
  77. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/WorkletRuntime/WorkletRuntimeCollector.h +36 -0
  78. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/WorkletRuntime/WorkletRuntimeDecorator.cpp +182 -0
  79. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/WorkletRuntime/WorkletRuntimeDecorator.h +22 -0
  80. package/harmony/reanimated/src/main/cpp/ReanimatedLogger.cpp +33 -0
  81. package/harmony/reanimated/src/main/cpp/ReanimatedModule.cpp +222 -0
  82. package/harmony/reanimated/src/main/cpp/ReanimatedModule.h +24 -0
  83. package/harmony/reanimated/src/main/cpp/ReanimatedNodesManager.cpp +56 -0
  84. package/harmony/reanimated/src/main/cpp/ReanimatedNodesManager.h +31 -0
  85. package/harmony/reanimated/src/main/cpp/ReanimatedPackage.cpp +47 -0
  86. package/harmony/reanimated/src/main/cpp/ReanimatedPackage.h +16 -0
  87. package/harmony/reanimated/src/main/cpp/ReanimatedUIScheduler.cpp +23 -0
  88. package/harmony/reanimated/src/main/cpp/ReanimatedUIScheduler.h +20 -0
  89. package/harmony/reanimated/src/main/cpp/TransformParser.h +94 -0
  90. package/harmony/reanimated/src/main/cpp/WorkletsModule.cpp +58 -0
  91. package/harmony/reanimated/src/main/cpp/WorkletsModule.h +22 -0
  92. package/harmony/reanimated/src/main/cpp/patches/AnimatedSensor/AnimatedSensorModule.cpp +89 -0
  93. package/harmony/reanimated/src/main/cpp/patches/Fabric/ShadowTreeCloner.cpp +95 -0
  94. package/harmony/reanimated/src/main/cpp/patches/NativeModules/ReanimatedModuleProxy.cpp +961 -0
  95. package/harmony/reanimated/src/main/ets/AnimationManager.ts +61 -0
  96. package/harmony/reanimated/src/main/ets/ReanimatedModule.ts +41 -0
  97. package/harmony/reanimated/src/main/ets/ReanimatedPackage.ts +29 -0
  98. package/harmony/reanimated/src/main/ets/WorkletsModule.ts +15 -0
  99. package/harmony/reanimated/src/main/module.json5 +13 -0
  100. package/harmony/reanimated/src/main/resources/base/element/color.json +8 -0
  101. package/harmony/reanimated/src/main/resources/base/element/string.json +16 -0
  102. package/harmony/reanimated/src/main/resources/base/media/icon.png +0 -0
  103. package/harmony/reanimated/src/main/resources/base/media/startIcon.png +0 -0
  104. package/harmony/reanimated/src/main/resources/base/profile/main_pages.json +5 -0
  105. package/harmony/reanimated/src/main/resources/en_US/element/string.json +16 -0
  106. package/harmony/reanimated/src/main/resources/zh_CN/element/string.json +16 -0
  107. package/harmony/reanimated/ts.ts +6 -0
  108. package/harmony/reanimated.har +0 -0
  109. package/lib/index.d.ts +4 -0
  110. package/lib/index.d.ts.map +1 -0
  111. package/lib/index.js +7 -0
  112. package/package.json +50 -0
  113. package/src/index.ts +10 -0
@@ -0,0 +1,61 @@
1
+ // Copyright (c) 2025 Huawei Device Co., Ltd. All rights reserved
2
+ // Use of this source code is governed by a MIT license that can be
3
+ // found in the LICENSE file.
4
+
5
+ export class AnimationManager {
6
+ private updateValue: number = 0;
7
+ private animationId: number = 0;
8
+ private duration: number = 200;
9
+ private initialValue: number = 0;
10
+ private targetValue: number = 1;
11
+ private updateCallback?: (value: number, status: KeyboardState) => void;
12
+ private status: KeyboardState = KeyboardState.UNKNOWN;
13
+
14
+ setUpdateCallback(callback: (value: number, status: KeyboardState) => void): void {
15
+ this.updateCallback = callback;
16
+ }
17
+
18
+ startAnimation(startValue: number, endValue: number, duration: number): void {
19
+ if (this.animationId) {
20
+ this.stopAnimation();
21
+ }
22
+ this.initialValue = startValue;
23
+ this.targetValue = endValue;
24
+ this.duration = duration;
25
+ let startTime = Date.now();
26
+ this.status = endValue > startValue ? KeyboardState.OPENING : KeyboardState.CLOSING;
27
+
28
+ this.animationId = setInterval(() => {
29
+ const elapsedTime = Date.now() - startTime;
30
+ const progress = Math.min(elapsedTime / this.duration, 1);
31
+
32
+ this.updateValue = this.initialValue + progress * (this.targetValue - this.initialValue);
33
+ if (progress >= 1) {
34
+ this.status = endValue > startValue ? KeyboardState.OPEN : KeyboardState.CLOSED;
35
+ }
36
+ if (this.updateCallback) {
37
+ this.updateCallback(this.updateValue, this.status);
38
+ }
39
+ if (progress >= 1) {
40
+ this.stopAnimation();
41
+ }
42
+ }, 8);
43
+ }
44
+
45
+ // 停止动画
46
+ stopAnimation(): void {
47
+ if (this.animationId) {
48
+ clearInterval(this.animationId);
49
+ this.animationId = 0;
50
+ }
51
+ this.status = KeyboardState.UNKNOWN;
52
+ }
53
+ }
54
+
55
+ export enum KeyboardState {
56
+ UNKNOWN = 0,
57
+ OPENING = 1,
58
+ OPEN = 2,
59
+ CLOSING = 3,
60
+ CLOSED = 4,
61
+ }
@@ -0,0 +1,41 @@
1
+ // Copyright (c) 2025 Huawei Device Co., Ltd. All rights reserved
2
+ // Use of this source code is governed by a MIT license that can be
3
+ // found in the LICENSE file.
4
+
5
+ import { RNOHLogger, Tag, UITurboModule, UITurboModuleContext } from "@rnoh/react-native-openharmony/ts";
6
+ import { window } from '@kit.ArkUI';
7
+ import { AnimationManager } from './AnimationManager'
8
+
9
+ export class ReanimatedModule extends UITurboModule {
10
+ static NAME = "ReanimatedModule"
11
+ private logger: RNOHLogger
12
+ private keyBordHeight = 0;
13
+
14
+ constructor(ctx: UITurboModuleContext) {
15
+ super(ctx);
16
+ this.logger = ctx.logger.clone("Reanimated");
17
+ }
18
+ public setViewProps(tag: Tag, props: Object) {
19
+ this.ctx.descriptorRegistry.setAnimatedRawProps(tag, props);
20
+ }
21
+
22
+ public async subscribeKeyBordListeners() {
23
+ const windowInstance = await window.getLastWindow(this.ctx.uiAbilityContext);
24
+ windowInstance.on('keyboardHeightChange', async (height) => {
25
+ let keyBordHeight = this.ctx.getUIContext().px2vp(height);
26
+ const animationManager = new AnimationManager();
27
+ animationManager.setUpdateCallback((value, status) => {
28
+ this.ctx.rnInstance.postMessageToCpp("REANIMATED_KEY_BOARD_CHANGE",
29
+ { keyboardHeight: value, status: status.valueOf() });
30
+ });
31
+ animationManager.startAnimation(this.keyBordHeight, keyBordHeight, 200);
32
+ this.keyBordHeight = keyBordHeight;
33
+ })
34
+ }
35
+
36
+ public async unsubscribeKeyBordListeners() {
37
+ const windowInstance = await window.getLastWindow(this.ctx.uiAbilityContext);
38
+ windowInstance.off('keyboardHeightChange', (v) => {
39
+ })
40
+ }
41
+ }
@@ -0,0 +1,29 @@
1
+ // Copyright (c) 2025 Huawei Device Co., Ltd. All rights reserved
2
+ // Use of this source code is governed by a MIT license that can be
3
+ // found in the LICENSE file.
4
+
5
+ import { RNPackage, UITurboModuleContext, TurboModulesFactory } from "@rnoh/react-native-openharmony/ts";
6
+ import type { UITurboModule } from "@rnoh/react-native-openharmony/ts";
7
+ import { ReanimatedModule } from './ReanimatedModule';
8
+ import { WorkletsModule } from './WorkletsModule';
9
+
10
+ class ReanimatedTurboModulesFactory extends TurboModulesFactory {
11
+ createTurboModule(name: string): UITurboModule | null {
12
+ if (name === ReanimatedModule.NAME) {
13
+ return new ReanimatedModule(this.ctx);
14
+ } else if (name === WorkletsModule.NAME) {
15
+ return new WorkletsModule(this.ctx);
16
+ }
17
+ return null;
18
+ }
19
+
20
+ hasTurboModule(name: string): boolean {
21
+ return name === 'ReanimatedModule' || name === 'WorkletsModule';
22
+ }
23
+ }
24
+
25
+ export class ReanimatedPackage extends RNPackage {
26
+ createTurboModulesFactory(ctx: UITurboModuleContext): TurboModulesFactory {
27
+ return new ReanimatedTurboModulesFactory(ctx);
28
+ }
29
+ }
@@ -0,0 +1,15 @@
1
+ // Copyright (c) 2025 Huawei Device Co., Ltd. All rights reserved
2
+ // Use of this source code is governed by a MIT license that can be
3
+ // found in the LICENSE file.
4
+
5
+ import { RNOHLogger, Tag, UITurboModule, UITurboModuleContext } from "@rnoh/react-native-openharmony/ts";
6
+
7
+ export class WorkletsModule extends UITurboModule {
8
+ static NAME = "WorkletsModule"
9
+ private logger: RNOHLogger
10
+
11
+ constructor(ctx: UITurboModuleContext) {
12
+ super(ctx);
13
+ this.logger = ctx.logger.clone("WorkletsModule");
14
+ }
15
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "module": {
3
+ "name": "reanimated",
4
+ "type": "har",
5
+ "description": "$string:module_desc",
6
+ "mainElement": "ReanimatedAbility",
7
+ "deviceTypes": [
8
+ "phone",
9
+ "tablet",
10
+ "2in1"
11
+ ],
12
+ }
13
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "color": [
3
+ {
4
+ "name": "start_window_background",
5
+ "value": "#FFFFFF"
6
+ }
7
+ ]
8
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "string": [
3
+ {
4
+ "name": "module_desc",
5
+ "value": "module description"
6
+ },
7
+ {
8
+ "name": "ReanimatedAbility_desc",
9
+ "value": "description"
10
+ },
11
+ {
12
+ "name": "ReanimatedAbility_label",
13
+ "value": "label"
14
+ }
15
+ ]
16
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "src": [
3
+ "pages/Index"
4
+ ]
5
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "string": [
3
+ {
4
+ "name": "module_desc",
5
+ "value": "module description"
6
+ },
7
+ {
8
+ "name": "ReanimatedAbility_desc",
9
+ "value": "description"
10
+ },
11
+ {
12
+ "name": "ReanimatedAbility_label",
13
+ "value": "label"
14
+ }
15
+ ]
16
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "string": [
3
+ {
4
+ "name": "module_desc",
5
+ "value": "模块描述"
6
+ },
7
+ {
8
+ "name": "ReanimatedAbility_desc",
9
+ "value": "description"
10
+ },
11
+ {
12
+ "name": "ReanimatedAbility_label",
13
+ "value": "label"
14
+ }
15
+ ]
16
+ }
@@ -0,0 +1,6 @@
1
+ // Copyright (c) 2025 Huawei Device Co., Ltd. All rights reserved
2
+ // Use of this source code is governed by a MIT license that can be
3
+ // found in the LICENSE file.
4
+
5
+ export * from './src/main/ets/ReanimatedPackage';
6
+ export * from './src/main/ets/ReanimatedModule';
Binary file
package/lib/index.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ import Animated from 'react-native-reanimated';
2
+ export * from 'react-native-reanimated';
3
+ export default Animated;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,OAAO,QAAQ,MAAM,yBAAyB,CAAC;AAC/C,cAAc,yBAAyB,CAAC;AAExC,eAAe,QAAQ,CAAC"}
package/lib/index.js ADDED
@@ -0,0 +1,7 @@
1
+ // Copyright (c) 2025 Huawei Device Co., Ltd. All rights reserved
2
+ // Use of this source code is governed by a MIT license that can be
3
+ // found in the LICENSE file.
4
+ 'use strict';
5
+ import Animated from 'react-native-reanimated';
6
+ export * from 'react-native-reanimated';
7
+ export default Animated;
package/package.json ADDED
@@ -0,0 +1,50 @@
1
+ {
2
+ "name": "@react-native-ohos/react-native-reanimated",
3
+ "harmony": {
4
+ "alias": "react-native-reanimated",
5
+ "redirectInternalImports": true
6
+ },
7
+ "version": "3.18.1-rc.1",
8
+ "description": "",
9
+ "main": "lib/index.js",
10
+ "scripts": {
11
+ "build": "tsc",
12
+ "pack:prod": "npm pack",
13
+ "prepack": "npm run build",
14
+ "prepublishOnly": "npm run prepack && react-native verify-package-harmony --package-path . --skip-checks oh_package_name_is_derived_from_npm_package_name",
15
+ "update_version": "node ./scripts/update-version.js",
16
+ "deploy": "node ./scripts/deploy.js"
17
+ },
18
+ "peerDependencies": {
19
+ "react": "*",
20
+ "react-native": "*",
21
+ "react-native-harmony": "*",
22
+ "react-native-reanimated": "^3.18.0"
23
+ },
24
+ "author": "",
25
+ "license": "ISC",
26
+ "dependencies": {
27
+ "@types/node": "^20.11.4",
28
+ "react-native-reanimated": "^3.18.0"
29
+ },
30
+ "devDependencies": {
31
+ "@babel/cli": "^7.23.4",
32
+ "@babel/core": "^7.23.7",
33
+ "@babel/preset-env": "^7.23.8",
34
+ "@babel/preset-typescript": "^7.23.3",
35
+ "@babel/runtime": "^7.23.8",
36
+ "@types/invariant": "^2.2.35",
37
+ "@types/react": "^18.2.15",
38
+ "metro-react-native-babel-preset": "^0.77.0",
39
+ "react": "18.3.1",
40
+ "react-native": "0.77.1",
41
+ "react-native-builder-bob": "^0.21.3",
42
+ "typescript": "^5.1.6"
43
+ },
44
+ "files": [
45
+ "lib",
46
+ "harmony",
47
+ "src",
48
+ "./harmony.tar.gz"
49
+ ]
50
+ }
package/src/index.ts ADDED
@@ -0,0 +1,10 @@
1
+ // Copyright (c) 2025 Huawei Device Co., Ltd. All rights reserved
2
+ // Use of this source code is governed by a MIT license that can be
3
+ // found in the LICENSE file.
4
+
5
+ 'use strict';
6
+
7
+ import Animated from 'react-native-reanimated';
8
+ export * from 'react-native-reanimated';
9
+
10
+ export default Animated;