@react-native-oh/react-native-harmony 0.72.23-3 → 0.72.27

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 (44) hide show
  1. package/Libraries/Alert/Alert.harmony.js +71 -71
  2. package/Libraries/Alert/AlertManager.ts +35 -35
  3. package/Libraries/Animated/NativeAnimatedHelper.harmony.js +601 -601
  4. package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.harmony.js +445 -426
  5. package/Libraries/Components/AccessibilityInfo/NativeAccessibilityManager.harmony.js +30 -0
  6. package/Libraries/Components/AccessibilityInfo/legacySendAccessibilityEvent.harmony.js +26 -0
  7. package/Libraries/Components/Button/Button.harmony.js +450 -450
  8. package/Libraries/Components/Image/Image.flow.harmony.js +53 -0
  9. package/Libraries/Components/Image/Image.harmony.js +299 -0
  10. package/Libraries/Components/Image/NativeImageLoaderHarmony.js +38 -0
  11. package/Libraries/Components/RefreshControl/RefreshControl.harmony.js +210 -210
  12. package/Libraries/Components/SafeAreaView/SafeAreaView.harmony.tsx +76 -75
  13. package/Libraries/Components/ScrollView/ScrollView.harmony.js +1951 -1951
  14. package/Libraries/Components/ScrollView/processDecelerationRate.harmony.js +24 -24
  15. package/Libraries/Components/StatusBar/NativeStatusBarManagerHarmony.js +71 -68
  16. package/Libraries/Components/StatusBar/StatusBar.harmony.js +447 -447
  17. package/Libraries/Components/TextInput/TextInput.harmony.js +1707 -1707
  18. package/Libraries/Components/TextInput/TextInputState.harmony.js +220 -220
  19. package/Libraries/Components/Touchable/TouchableHighlight.harmony.js +396 -396
  20. package/Libraries/Components/Touchable/TouchableNativeFeedback.harmony.js +364 -364
  21. package/Libraries/Components/Touchable/TouchableWithoutFeedback.harmony.js +227 -227
  22. package/Libraries/Components/View/View.harmony.js +149 -149
  23. package/Libraries/Core/setUpReactDevTools.harmony.js +93 -93
  24. package/Libraries/Image/AssetSourceResolver.harmony.ts +78 -78
  25. package/Libraries/NativeComponent/BaseViewConfig.harmony.js +337 -337
  26. package/Libraries/ReactNative/UIManager.harmony.js +210 -210
  27. package/Libraries/Settings/Settings.harmony.js +15 -15
  28. package/Libraries/Share/Share.harmony.js +174 -174
  29. package/Libraries/StyleSheet/NativePlatformColor.ts +8 -8
  30. package/Libraries/StyleSheet/PlatformColorValueTypes.harmony.ts +14 -14
  31. package/Libraries/Utilities/BackHandler.harmony.js +109 -109
  32. package/Libraries/Utilities/{NativePlatformConstantsHarmony.ts → NativePlatformConstants.harmony.ts} +8 -8
  33. package/Libraries/Utilities/Platform.d.ts +117 -117
  34. package/Libraries/Utilities/Platform.harmony.ts +33 -33
  35. package/Libraries/Utilities/createPerformanceLogger.harmony.js +328 -328
  36. package/Libraries/Vibration/Vibration.harmony.js +88 -88
  37. package/index.js +212 -212
  38. package/jest.config.js +5 -5
  39. package/metro.config.js +348 -348
  40. package/package.json +57 -57
  41. package/react-native.config.js +10 -10
  42. package/react_native_openharmony.har +0 -0
  43. package/tsconfig.json +13 -13
  44. package/types/index.d.ts +101 -101
package/package.json CHANGED
@@ -1,58 +1,58 @@
1
- {
2
- "name": "@react-native-oh/react-native-harmony",
3
- "version": "0.72.23-3",
4
- "description": "",
5
- "publishConfig": {
6
- "registry": "https://registry.npmjs.org/",
7
- "access": "public"
8
- },
9
- "scripts": {
10
- "install:local-cli": "cd ../react-native-harmony-cli && npm pack && cd ../react-native-harmony && npm i ../react-native-harmony-cli/rnoh-react-native-harmony-cli-0.0.25.tgz && cd ../react-native-harmony",
11
- "prepublishOnly": "npm run verify",
12
- "hermes:build": "sh ./scripts/build-hermes.sh",
13
- "update_version": "node ./scripts/update-version.js",
14
- "gen:changelog": "node ./scripts/generate-changelog.js",
15
- "deploy": "node ./scripts/deploy.js",
16
- "verify": "react-native verify-package-harmony --package-path . --skip-checks oh_package_name_is_derived_from_npm_package_name",
17
- "test": "jest"
18
- },
19
- "author": "",
20
- "license": "ISC",
21
- "peerDependencies": {
22
- "react-native": "0.72.5"
23
- },
24
- "types": "types",
25
- "devDependencies": {
26
- "@react-native-community/cli": "^11.2.0",
27
- "@react-native-community/cli-types": "^11.2.0",
28
- "@react-native/metro-config": "^0.72.6",
29
- "@tsconfig/react-native": "^2.0.3",
30
- "@types/fs-extra": "^11.0.1",
31
- "@types/jest": "^29.5.12",
32
- "@types/node": "^18.16.0",
33
- "@types/react": "^18.2.24",
34
- "@types/tmp": "^0.2.6",
35
- "jest": "^29.5.0",
36
- "json5": "^2.2.3",
37
- "rimraf": "^5.0.0",
38
- "tmp": "^0.2.1",
39
- "ts-jest": "^29.1.2",
40
- "ts-node": "^10.9.1",
41
- "typescript": "^5.0.4"
42
- },
43
- "files": [
44
- "./Libraries/**/*",
45
- "./types/**/*",
46
- "./*.js",
47
- "./*.json",
48
- "./harmony/*",
49
- "./*.har"
50
- ],
51
- "dependencies": {
52
- "@react-native-oh/react-native-harmony-cli": "^0.0.25",
53
- "colors": "^1.4.0",
54
- "fs-extra": "^11.1.1",
55
- "metro": "^0.76.3",
56
- "metro-config": "^0.76.3"
57
- }
1
+ {
2
+ "name": "@react-native-oh/react-native-harmony",
3
+ "version": "0.72.27",
4
+ "description": "",
5
+ "publishConfig": {
6
+ "registry": "https://registry.npmjs.org/",
7
+ "access": "public"
8
+ },
9
+ "scripts": {
10
+ "install:local-cli": "cd ../react-native-harmony-cli && npm pack && cd ../react-native-harmony && npm i ../react-native-harmony-cli/rnoh-react-native-harmony-cli-0.0.25.tgz && cd ../react-native-harmony",
11
+ "prepublishOnly": "npm run verify",
12
+ "hermes:build": "sh ./scripts/build-hermes.sh",
13
+ "update_version": "node ./scripts/update-version.js",
14
+ "gen:changelog": "node ./scripts/generate-changelog.js",
15
+ "deploy": "node ./scripts/deploy.js",
16
+ "verify": "react-native verify-package-harmony --package-path . --skip-checks oh_package_name_is_derived_from_npm_package_name",
17
+ "test": "jest"
18
+ },
19
+ "author": "",
20
+ "license": "ISC",
21
+ "peerDependencies": {
22
+ "react-native": "0.72.5"
23
+ },
24
+ "types": "types",
25
+ "devDependencies": {
26
+ "@react-native-community/cli": "^11.2.0",
27
+ "@react-native-community/cli-types": "^11.2.0",
28
+ "@react-native/metro-config": "^0.72.6",
29
+ "@tsconfig/react-native": "^2.0.3",
30
+ "@types/fs-extra": "^11.0.1",
31
+ "@types/jest": "^29.5.12",
32
+ "@types/node": "^18.16.0",
33
+ "@types/react": "^18.2.24",
34
+ "@types/tmp": "^0.2.6",
35
+ "jest": "^29.5.0",
36
+ "json5": "^2.2.3",
37
+ "rimraf": "^5.0.0",
38
+ "tmp": "^0.2.1",
39
+ "ts-jest": "^29.1.2",
40
+ "ts-node": "^10.9.1",
41
+ "typescript": "^5.0.4"
42
+ },
43
+ "files": [
44
+ "./Libraries/**/*",
45
+ "./types/**/*",
46
+ "./*.js",
47
+ "./*.json",
48
+ "./harmony/*",
49
+ "./*.har"
50
+ ],
51
+ "dependencies": {
52
+ "@react-native-oh/react-native-harmony-cli": "^0.0.26",
53
+ "colors": "^1.4.0",
54
+ "fs-extra": "^11.1.1",
55
+ "metro": "^0.76.3",
56
+ "metro-config": "^0.76.3"
57
+ }
58
58
  }
@@ -1,10 +1,10 @@
1
- const { config: harmonyConfig } = require('@react-native-oh/react-native-harmony-cli')
2
-
3
- /**
4
- * @type {import("@react-native-community/cli-types").Config}
5
- */
6
- const config = {
7
- commands: harmonyConfig.commands,
8
- }
9
-
10
- module.exports = config
1
+ const { config: harmonyConfig } = require('@react-native-oh/react-native-harmony-cli')
2
+
3
+ /**
4
+ * @type {import("@react-native-community/cli-types").Config}
5
+ */
6
+ const config = {
7
+ commands: harmonyConfig.commands,
8
+ }
9
+
10
+ module.exports = config
Binary file
package/tsconfig.json CHANGED
@@ -1,14 +1,14 @@
1
- {
2
- "extends": [
3
- "@tsconfig/react-native/tsconfig.json",
4
- ],
5
- "exclude": [
6
- "./harmony/cpp"
7
- ],
8
- "compilerOptions": {
9
- "types": [
10
- "node", // Removes an error when exporting with module.exports.
11
- "jest"
12
- ]
13
- }
1
+ {
2
+ "extends": [
3
+ "@tsconfig/react-native/tsconfig.json",
4
+ ],
5
+ "exclude": [
6
+ "./harmony/cpp"
7
+ ],
8
+ "compilerOptions": {
9
+ "types": [
10
+ "node", // Removes an error when exporting with module.exports.
11
+ "jest"
12
+ ]
13
+ }
14
14
  }
package/types/index.d.ts CHANGED
@@ -1,101 +1,101 @@
1
- // export * from 'react-native/Libraries/ActionSheetIOS/ActionSheetIOS';
2
- export * from 'react-native/Libraries/Alert/Alert';
3
- export * from 'react-native/Libraries/Animated/Animated';
4
- export * from 'react-native/Libraries/Animated/Easing';
5
- export * from 'react-native/Libraries/Animated/useAnimatedValue';
6
- export * from 'react-native/Libraries/Utilities/useColorScheme';
7
- export * from 'react-native/Libraries/AppState/AppState';
8
- export * from 'react-native/Libraries/BatchedBridge/NativeModules';
9
- export * from 'react-native/Libraries/Components/AccessibilityInfo/AccessibilityInfo';
10
- export * from 'react-native/Libraries/Components/ActivityIndicator/ActivityIndicator';
11
- // export * from 'react-native/Libraries/Components/Clipboard/Clipboard';
12
- // export * from 'react-native/Libraries/Components/DatePicker/DatePickerIOS';
13
- export * from 'react-native/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid';
14
- export * from 'react-native/Libraries/Components/Keyboard/Keyboard';
15
- export * from 'react-native/Libraries/Components/Keyboard/KeyboardAvoidingView';
16
- export * from 'react-native/Libraries/Components/Pressable/Pressable';
17
- // export * from 'react-native/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid';
18
- // export * from 'react-native/Libraries/Components/ProgressViewIOS/ProgressViewIOS';
19
- export * from 'react-native/Libraries/Components/RefreshControl/RefreshControl';
20
- export * from 'react-native/Libraries/Components/SafeAreaView/SafeAreaView';
21
- export * from 'react-native/Libraries/Components/ScrollView/ScrollView';
22
- // export * from 'react-native/Libraries/Components/Slider/Slider';
23
- export * from 'react-native/Libraries/Components/StatusBar/StatusBar';
24
- export * from 'react-native/Libraries/Components/Switch/Switch';
25
- // export * from 'react-native/Libraries/Components/TextInput/InputAccessoryView';
26
- export * from 'react-native/Libraries/Components/TextInput/TextInput';
27
- export * from 'react-native/Libraries/Components/ToastAndroid/ToastAndroid';
28
- export * from 'react-native/Libraries/Components/Touchable/Touchable';
29
- export * from 'react-native/Libraries/Components/Touchable/TouchableHighlight';
30
- export * from 'react-native/Libraries/Components/Touchable/TouchableNativeFeedback';
31
- export * from 'react-native/Libraries/Components/Touchable/TouchableOpacity';
32
- export * from 'react-native/Libraries/Components/Touchable/TouchableWithoutFeedback';
33
- export * from 'react-native/Libraries/Components/View/View';
34
- export * from 'react-native/Libraries/Components/View/ViewAccessibility';
35
- export * from 'react-native/Libraries/Components/View/ViewPropTypes';
36
- export * from 'react-native/Libraries/Components/Button';
37
- export * from 'react-native/Libraries/EventEmitter/NativeEventEmitter';
38
- export * from 'react-native/Libraries/EventEmitter/RCTDeviceEventEmitter';
39
- // export * from 'react-native/Libraries/EventEmitter/RCTNativeAppEventEmitter';
40
- export * from 'react-native/Libraries/Image/Image';
41
- export * from 'react-native/Libraries/Image/ImageBackground';
42
- // export * from 'react-native/Libraries/Image/ImageResizeMode';
43
- // export * from 'react-native/Libraries/Image/ImageSource';
44
- export * from 'react-native/Libraries/Interaction/InteractionManager';
45
- export * from 'react-native/Libraries/Interaction/PanResponder';
46
- export * from 'react-native/Libraries/LayoutAnimation/LayoutAnimation';
47
- export * from 'react-native/Libraries/Linking/Linking';
48
- export * from 'react-native/Libraries/Lists/FlatList';
49
- export * from 'react-native/Libraries/Lists/SectionList';
50
- export * from '@react-native/virtualized-lists';
51
- export * from 'react-native/Libraries/LogBox/LogBox';
52
- export * from 'react-native/Libraries/Modal/Modal';
53
- export * as Systrace from 'react-native/Libraries/Performance/Systrace';
54
- // export * from 'react-native/Libraries/PermissionsAndroid/PermissionsAndroid';
55
- // export * from 'react-native/Libraries/PushNotificationIOS/PushNotificationIOS';
56
- export * from 'react-native/Libraries/ReactNative/AppRegistry';
57
- export * from 'react-native/Libraries/ReactNative/I18nManager';
58
- export * from 'react-native/Libraries/ReactNative/RendererProxy';
59
- export * from 'react-native/Libraries/ReactNative/RootTag';
60
- export * from 'react-native/Libraries/ReactNative/UIManager';
61
- export * from 'react-native/Libraries/ReactNative/requireNativeComponent';
62
- // export * from 'react-native/Libraries/Settings/Settings';
63
- export * from 'react-native/Libraries/Share/Share';
64
- export * from 'react-native/Libraries/StyleSheet/PlatformColorValueTypesIOS';
65
- export * from 'react-native/Libraries/StyleSheet/PlatformColorValueTypes';
66
- export * from 'react-native/Libraries/StyleSheet/StyleSheet';
67
- export * from 'react-native/Libraries/StyleSheet/StyleSheetTypes';
68
- export * from 'react-native/Libraries/StyleSheet/processColor';
69
- export * from 'react-native/Libraries/Text/Text';
70
- // export * from 'react-native/Libraries/TurboModule/RCTExport';
71
- export * as TurboModuleRegistry from 'react-native/Libraries/TurboModule/TurboModuleRegistry';
72
- export * from 'react-native/Libraries/Types/CoreEventTypes';
73
- export * from 'react-native/Libraries/Utilities/Appearance';
74
- export * from 'react-native/Libraries/Utilities/BackHandler';
75
- export * from 'react-native/Libraries/Utilities/DevSettings';
76
- export * from 'react-native/Libraries/Utilities/Dimensions';
77
- export * from 'react-native/Libraries/Utilities/PixelRatio';
78
- export * from '../Libraries/Utilities/Platform';
79
- export * from 'react-native/Libraries/Vibration/Vibration';
80
- // export * from 'react-native/Libraries/YellowBox/YellowBoxDeprecated';
81
- // export * from 'react-native/Libraries/vendor/core/ErrorUtils';
82
- export * from 'react-native/Libraries/vendor/emitter/EventEmitter';
83
-
84
- export * from 'react-native/types/public/DeprecatedPropertiesAlias';
85
- export * from 'react-native/types/public/Insets';
86
- export * from 'react-native/types/public/ReactNativeRenderer';
87
- export * from 'react-native/types/public/ReactNativeTypes';
88
-
89
- // react-native-harmony specific
90
- export declare function registerViewConfig(
91
- componentName: string,
92
- viewConfigFactory: () => Record
93
- ): any;
94
-
95
- export declare const ReactNativeViewAttributes: Record;
96
-
97
- export declare function dispatchCommand(
98
- currentRef: any,
99
- commandName: string,
100
- args: any
101
- );
1
+ // export * from 'react-native/Libraries/ActionSheetIOS/ActionSheetIOS';
2
+ export * from 'react-native/Libraries/Alert/Alert';
3
+ export * from 'react-native/Libraries/Animated/Animated';
4
+ export * from 'react-native/Libraries/Animated/Easing';
5
+ export * from 'react-native/Libraries/Animated/useAnimatedValue';
6
+ export * from 'react-native/Libraries/Utilities/useColorScheme';
7
+ export * from 'react-native/Libraries/AppState/AppState';
8
+ export * from 'react-native/Libraries/BatchedBridge/NativeModules';
9
+ export * from 'react-native/Libraries/Components/AccessibilityInfo/AccessibilityInfo';
10
+ export * from 'react-native/Libraries/Components/ActivityIndicator/ActivityIndicator';
11
+ // export * from 'react-native/Libraries/Components/Clipboard/Clipboard';
12
+ // export * from 'react-native/Libraries/Components/DatePicker/DatePickerIOS';
13
+ export * from 'react-native/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid';
14
+ export * from 'react-native/Libraries/Components/Keyboard/Keyboard';
15
+ export * from 'react-native/Libraries/Components/Keyboard/KeyboardAvoidingView';
16
+ export * from 'react-native/Libraries/Components/Pressable/Pressable';
17
+ // export * from 'react-native/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid';
18
+ // export * from 'react-native/Libraries/Components/ProgressViewIOS/ProgressViewIOS';
19
+ export * from 'react-native/Libraries/Components/RefreshControl/RefreshControl';
20
+ export * from 'react-native/Libraries/Components/SafeAreaView/SafeAreaView';
21
+ export * from 'react-native/Libraries/Components/ScrollView/ScrollView';
22
+ // export * from 'react-native/Libraries/Components/Slider/Slider';
23
+ export * from 'react-native/Libraries/Components/StatusBar/StatusBar';
24
+ export * from 'react-native/Libraries/Components/Switch/Switch';
25
+ // export * from 'react-native/Libraries/Components/TextInput/InputAccessoryView';
26
+ export * from 'react-native/Libraries/Components/TextInput/TextInput';
27
+ export * from 'react-native/Libraries/Components/ToastAndroid/ToastAndroid';
28
+ export * from 'react-native/Libraries/Components/Touchable/Touchable';
29
+ export * from 'react-native/Libraries/Components/Touchable/TouchableHighlight';
30
+ export * from 'react-native/Libraries/Components/Touchable/TouchableNativeFeedback';
31
+ export * from 'react-native/Libraries/Components/Touchable/TouchableOpacity';
32
+ export * from 'react-native/Libraries/Components/Touchable/TouchableWithoutFeedback';
33
+ export * from 'react-native/Libraries/Components/View/View';
34
+ export * from 'react-native/Libraries/Components/View/ViewAccessibility';
35
+ export * from 'react-native/Libraries/Components/View/ViewPropTypes';
36
+ export * from 'react-native/Libraries/Components/Button';
37
+ export * from 'react-native/Libraries/EventEmitter/NativeEventEmitter';
38
+ export * from 'react-native/Libraries/EventEmitter/RCTDeviceEventEmitter';
39
+ // export * from 'react-native/Libraries/EventEmitter/RCTNativeAppEventEmitter';
40
+ export * from 'react-native/Libraries/Image/Image';
41
+ export * from 'react-native/Libraries/Image/ImageBackground';
42
+ // export * from 'react-native/Libraries/Image/ImageResizeMode';
43
+ // export * from 'react-native/Libraries/Image/ImageSource';
44
+ export * from 'react-native/Libraries/Interaction/InteractionManager';
45
+ export * from 'react-native/Libraries/Interaction/PanResponder';
46
+ export * from 'react-native/Libraries/LayoutAnimation/LayoutAnimation';
47
+ export * from 'react-native/Libraries/Linking/Linking';
48
+ export * from 'react-native/Libraries/Lists/FlatList';
49
+ export * from 'react-native/Libraries/Lists/SectionList';
50
+ export * from '@react-native/virtualized-lists';
51
+ export * from 'react-native/Libraries/LogBox/LogBox';
52
+ export * from 'react-native/Libraries/Modal/Modal';
53
+ export * as Systrace from 'react-native/Libraries/Performance/Systrace';
54
+ // export * from 'react-native/Libraries/PermissionsAndroid/PermissionsAndroid';
55
+ // export * from 'react-native/Libraries/PushNotificationIOS/PushNotificationIOS';
56
+ export * from 'react-native/Libraries/ReactNative/AppRegistry';
57
+ export * from 'react-native/Libraries/ReactNative/I18nManager';
58
+ export * from 'react-native/Libraries/ReactNative/RendererProxy';
59
+ export * from 'react-native/Libraries/ReactNative/RootTag';
60
+ export * from 'react-native/Libraries/ReactNative/UIManager';
61
+ export * from 'react-native/Libraries/ReactNative/requireNativeComponent';
62
+ // export * from 'react-native/Libraries/Settings/Settings';
63
+ export * from 'react-native/Libraries/Share/Share';
64
+ export * from 'react-native/Libraries/StyleSheet/PlatformColorValueTypesIOS';
65
+ export * from 'react-native/Libraries/StyleSheet/PlatformColorValueTypes';
66
+ export * from 'react-native/Libraries/StyleSheet/StyleSheet';
67
+ export * from 'react-native/Libraries/StyleSheet/StyleSheetTypes';
68
+ export * from 'react-native/Libraries/StyleSheet/processColor';
69
+ export * from 'react-native/Libraries/Text/Text';
70
+ // export * from 'react-native/Libraries/TurboModule/RCTExport';
71
+ export * as TurboModuleRegistry from 'react-native/Libraries/TurboModule/TurboModuleRegistry';
72
+ export * from 'react-native/Libraries/Types/CoreEventTypes';
73
+ export * from 'react-native/Libraries/Utilities/Appearance';
74
+ export * from 'react-native/Libraries/Utilities/BackHandler';
75
+ export * from 'react-native/Libraries/Utilities/DevSettings';
76
+ export * from 'react-native/Libraries/Utilities/Dimensions';
77
+ export * from 'react-native/Libraries/Utilities/PixelRatio';
78
+ export * from '../Libraries/Utilities/Platform';
79
+ export * from 'react-native/Libraries/Vibration/Vibration';
80
+ // export * from 'react-native/Libraries/YellowBox/YellowBoxDeprecated';
81
+ // export * from 'react-native/Libraries/vendor/core/ErrorUtils';
82
+ export * from 'react-native/Libraries/vendor/emitter/EventEmitter';
83
+
84
+ export * from 'react-native/types/public/DeprecatedPropertiesAlias';
85
+ export * from 'react-native/types/public/Insets';
86
+ export * from 'react-native/types/public/ReactNativeRenderer';
87
+ export * from 'react-native/types/public/ReactNativeTypes';
88
+
89
+ // react-native-harmony specific
90
+ export declare function registerViewConfig(
91
+ componentName: string,
92
+ viewConfigFactory: () => Record
93
+ ): any;
94
+
95
+ export declare const ReactNativeViewAttributes: Record;
96
+
97
+ export declare function dispatchCommand(
98
+ currentRef: any,
99
+ commandName: string,
100
+ args: any
101
+ );