@react-native-oh/react-native-harmony 0.72.13-lazy-2 → 0.72.17
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/Libraries/Alert/Alert.harmony.js +1 -1
- package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.harmony.js +426 -0
- package/Libraries/Components/ScrollView/ScrollView.harmony.js +6 -5
- package/Libraries/Core/setUpReactDevTools.harmony.js +93 -0
- package/Libraries/Image/AssetSourceResolver.harmony.ts +46 -0
- package/Libraries/NativeComponent/BaseViewConfig.harmony.js +12 -0
- package/Libraries/ReactNative/UIManager.harmony.js +210 -0
- package/Libraries/StyleSheet/NativePlatformColor.ts +8 -0
- package/Libraries/StyleSheet/PlatformColorValueTypes.harmony.ts +14 -0
- package/Libraries/Vibration/Vibration.harmony.js +88 -0
- package/index.js +19 -2
- package/jest.config.js +6 -0
- package/metro.config.js +114 -35
- package/package.json +15 -6
- package/{rnoh-4.0.0.201-14-vmall.har → rnoh-4.0.0.202-02-vmall.har} +0 -0
- package/tsconfig.json +1 -0
- package/types/index.d.ts +6 -6
- package/Libraries/Core/setUpErrorHandling.harmony.js +0 -35
- package/Libraries/NativeModules/specs/NativeDevSettings.harmony.js +0 -10
package/package.json
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-native-oh/react-native-harmony",
|
|
3
|
-
"version": "0.72.
|
|
3
|
+
"version": "0.72.17",
|
|
4
4
|
"description": "",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/",
|
|
7
7
|
"access": "public"
|
|
8
8
|
},
|
|
9
9
|
"scripts": {
|
|
10
|
-
"install:
|
|
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.17.tgz && cd ../react-native-harmony",
|
|
11
11
|
"pack:harmony": "react-native pack-harmony --oh-module-path ../tester/harmony/rnoh --harmony-dir-path ./harmony --package-json-path ./package.json",
|
|
12
12
|
"pack:prod": "npm run pack:harmony && npm pack",
|
|
13
|
-
"prepublishOnly": "npm run pack:harmony",
|
|
14
|
-
"hermes:build": "sh ./scripts/build-hermes.sh"
|
|
13
|
+
"prepublishOnly": "npm run test && npm run pack:harmony",
|
|
14
|
+
"hermes:build": "sh ./scripts/build-hermes.sh",
|
|
15
|
+
"test": "jest"
|
|
15
16
|
},
|
|
16
17
|
"author": "",
|
|
17
18
|
"license": "ISC",
|
|
@@ -22,11 +23,19 @@
|
|
|
22
23
|
"devDependencies": {
|
|
23
24
|
"@react-native-community/cli": "^11.2.0",
|
|
24
25
|
"@react-native-community/cli-types": "^11.2.0",
|
|
26
|
+
"@react-native/metro-config": "^0.72.6",
|
|
25
27
|
"@tsconfig/react-native": "^2.0.3",
|
|
26
28
|
"@types/fs-extra": "^11.0.1",
|
|
29
|
+
"@types/jest": "^29.5.12",
|
|
27
30
|
"@types/node": "^18.16.0",
|
|
28
31
|
"@types/react": "^18.2.24",
|
|
29
|
-
"
|
|
32
|
+
"@types/tmp": "^0.2.6",
|
|
33
|
+
"jest": "^29.5.0",
|
|
34
|
+
"rimraf": "^5.0.0",
|
|
35
|
+
"tmp": "^0.2.1",
|
|
36
|
+
"ts-jest": "^29.1.2",
|
|
37
|
+
"ts-node": "^10.9.1",
|
|
38
|
+
"typescript": "^5.0.4"
|
|
30
39
|
},
|
|
31
40
|
"files": [
|
|
32
41
|
"./harmony.tar.gz",
|
|
@@ -37,7 +46,7 @@
|
|
|
37
46
|
"./*.har"
|
|
38
47
|
],
|
|
39
48
|
"dependencies": {
|
|
40
|
-
"@react-native-oh/react-native-harmony-cli": "^0.0.
|
|
49
|
+
"@react-native-oh/react-native-harmony-cli": "^0.0.23",
|
|
41
50
|
"colors": "^1.4.0",
|
|
42
51
|
"fs-extra": "^11.1.1",
|
|
43
52
|
"metro": "^0.76.3",
|
|
Binary file
|
package/tsconfig.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export * from 'react-native/Libraries/Animated/useAnimatedValue';
|
|
|
6
6
|
export * from 'react-native/Libraries/Utilities/useColorScheme';
|
|
7
7
|
export * from 'react-native/Libraries/AppState/AppState';
|
|
8
8
|
export * from 'react-native/Libraries/BatchedBridge/NativeModules';
|
|
9
|
-
|
|
9
|
+
export * from 'react-native/Libraries/Components/AccessibilityInfo/AccessibilityInfo';
|
|
10
10
|
export * from 'react-native/Libraries/Components/ActivityIndicator/ActivityIndicator';
|
|
11
11
|
// export * from 'react-native/Libraries/Components/Clipboard/Clipboard';
|
|
12
12
|
// export * from 'react-native/Libraries/Components/DatePicker/DatePickerIOS';
|
|
@@ -24,7 +24,7 @@ export * from 'react-native/Libraries/Components/StatusBar/StatusBar';
|
|
|
24
24
|
export * from 'react-native/Libraries/Components/Switch/Switch';
|
|
25
25
|
// export * from 'react-native/Libraries/Components/TextInput/InputAccessoryView';
|
|
26
26
|
export * from 'react-native/Libraries/Components/TextInput/TextInput';
|
|
27
|
-
|
|
27
|
+
export * from 'react-native/Libraries/Components/ToastAndroid/ToastAndroid';
|
|
28
28
|
export * from 'react-native/Libraries/Components/Touchable/Touchable';
|
|
29
29
|
export * from 'react-native/Libraries/Components/Touchable/TouchableHighlight';
|
|
30
30
|
export * from 'react-native/Libraries/Components/Touchable/TouchableNativeFeedback';
|
|
@@ -60,9 +60,9 @@ export * from 'react-native/Libraries/ReactNative/RootTag';
|
|
|
60
60
|
export * from 'react-native/Libraries/ReactNative/UIManager';
|
|
61
61
|
export * from 'react-native/Libraries/ReactNative/requireNativeComponent';
|
|
62
62
|
// export * from 'react-native/Libraries/Settings/Settings';
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
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
66
|
export * from 'react-native/Libraries/StyleSheet/StyleSheet';
|
|
67
67
|
export * from 'react-native/Libraries/StyleSheet/StyleSheetTypes';
|
|
68
68
|
export * from 'react-native/Libraries/StyleSheet/processColor';
|
|
@@ -72,7 +72,7 @@ export * as TurboModuleRegistry from 'react-native/Libraries/TurboModule/TurboMo
|
|
|
72
72
|
export * from 'react-native/Libraries/Types/CoreEventTypes';
|
|
73
73
|
export * from 'react-native/Libraries/Utilities/Appearance';
|
|
74
74
|
export * from 'react-native/Libraries/Utilities/BackHandler';
|
|
75
|
-
|
|
75
|
+
export * from 'react-native/Libraries/Utilities/DevSettings';
|
|
76
76
|
export * from 'react-native/Libraries/Utilities/Dimensions';
|
|
77
77
|
export * from 'react-native/Libraries/Utilities/PixelRatio';
|
|
78
78
|
export * from '../Libraries/Utilities/Platform';
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*
|
|
7
|
-
* @flow strict-local
|
|
8
|
-
* @format
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
'use strict';
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Sets up the console and exception handling (redbox) for React Native.
|
|
15
|
-
* You can use this module directly, or just require InitializeCore.
|
|
16
|
-
*/
|
|
17
|
-
const ExceptionsManager = require('react-native/Libraries/Core/ExceptionsManager'); // RNOH: patch
|
|
18
|
-
ExceptionsManager.installConsoleErrorReporter();
|
|
19
|
-
|
|
20
|
-
global.__fbDisableExceptionsManager = true; // RNOH: patch
|
|
21
|
-
|
|
22
|
-
// Set up error handler
|
|
23
|
-
if (!global.__fbDisableExceptionsManager) {
|
|
24
|
-
const handleError = (e: mixed, isFatal: boolean) => {
|
|
25
|
-
try {
|
|
26
|
-
ExceptionsManager.handleException(e, isFatal);
|
|
27
|
-
} catch (ee) {
|
|
28
|
-
console.log('Failed to print error: ', ee.message);
|
|
29
|
-
throw e;
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
const ErrorUtils = require('react-native/Libraries/vendor/core/ErrorUtils'); // RNOH: patch
|
|
34
|
-
ErrorUtils.setGlobalHandler(handleError);
|
|
35
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
reload() {},
|
|
3
|
-
reloadWithReason(reason) {},
|
|
4
|
-
onFastRefresh() {},
|
|
5
|
-
setHotLoadingEnabled(isHotLoadingEnabled) {},
|
|
6
|
-
setIsDebuggingRemotely(isDebuggingRemotelyEnabled) {},
|
|
7
|
-
setProfilingEnabled(isProfilingEnabled) {},
|
|
8
|
-
toggleElementInspector() {},
|
|
9
|
-
addMenuItem(title) {},
|
|
10
|
-
};
|