@react-native-oh/react-native-harmony 0.72.96 → 0.72.101-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/Libraries/ReactNative/AppRegistry.harmony.js +366 -0
- package/Libraries/Renderer/implementations/ReactFabric-dev.harmony.js +24419 -0
- package/Libraries/Renderer/implementations/ReactFabric-prod-batch.harmony.js +8499 -0
- package/Libraries/Renderer/implementations/ReactFabric-prod.harmony.js +8445 -0
- package/Libraries/Renderer/shims/ReactFabric.harmony.js +38 -0
- package/index.js +1 -1
- package/package.json +3 -3
- package/react-native.config.js +3 -3
- package/react_native_openharmony.har +0 -0
- package/react_native_openharmony_release.har +0 -0
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
* @noformat
|
|
8
|
+
* @flow
|
|
9
|
+
* @generated SignedSource<<ef2742380b2b2c69cea8618289eea086>>
|
|
10
|
+
*
|
|
11
|
+
* This file was sync'd from the facebook/react repository.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
'use strict';
|
|
15
|
+
|
|
16
|
+
import {BatchedBridge} from 'react-native/Libraries/ReactPrivate/ReactNativePrivateInterface';
|
|
17
|
+
|
|
18
|
+
import type {ReactFabricType} from './ReactNativeTypes';
|
|
19
|
+
|
|
20
|
+
let ReactFabric;
|
|
21
|
+
|
|
22
|
+
if (__DEV__) {
|
|
23
|
+
ReactFabric = require('../implementations/ReactFabric-dev');
|
|
24
|
+
// RNOH patch begin
|
|
25
|
+
} else if (global._batch_to_native == true) {
|
|
26
|
+
ReactFabric = require('../implementations/ReactFabric-prod-batch');
|
|
27
|
+
// RNOH patch end
|
|
28
|
+
} else {
|
|
29
|
+
ReactFabric = require('../implementations/ReactFabric-prod');
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
if (global.RN$Bridgeless) {
|
|
33
|
+
global.RN$stopSurface = ReactFabric.stopSurface;
|
|
34
|
+
} else {
|
|
35
|
+
BatchedBridge.registerCallableModule('ReactFabric', ReactFabric);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
module.exports = (ReactFabric: ReactFabricType);
|
package/index.js
CHANGED
|
@@ -24,7 +24,7 @@ module.exports = {
|
|
|
24
24
|
return require('react-native/Libraries/Utilities/Appearance');
|
|
25
25
|
},
|
|
26
26
|
get AppRegistry() {
|
|
27
|
-
return require('
|
|
27
|
+
return require('./Libraries/ReactNative/AppRegistry');
|
|
28
28
|
},
|
|
29
29
|
get AppState() {
|
|
30
30
|
return require('react-native/Libraries/AppState/AppState');
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-native-oh/react-native-harmony",
|
|
3
|
-
"version": "0.72.
|
|
3
|
+
"version": "0.72.101-1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/",
|
|
7
7
|
"access": "public"
|
|
8
8
|
},
|
|
9
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.
|
|
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.40.tgz && cd ../react-native-harmony",
|
|
11
11
|
"prepublishOnly": "npm run verify",
|
|
12
12
|
"hermes:build": "sh ./scripts/build-hermes.sh",
|
|
13
13
|
"update_version": "node ./scripts/update-version.js",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"./*.har"
|
|
50
50
|
],
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@react-native-oh/react-native-harmony-cli": "0.0.
|
|
52
|
+
"@react-native-oh/react-native-harmony-cli": "^0.0.40",
|
|
53
53
|
"colors": "^1.4.0",
|
|
54
54
|
"fs-extra": "^11.1.1",
|
|
55
55
|
"metro": "^0.76.3",
|
package/react-native.config.js
CHANGED
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
* LICENSE-MIT file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
const { config: harmonyConfig } = require('@
|
|
8
|
+
const { config: harmonyConfig } = require('@rnoh/react-native-harmony-cli');
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* @type {import("@react-native-community/cli-types").Config}
|
|
12
12
|
*/
|
|
13
13
|
const config = {
|
|
14
14
|
commands: harmonyConfig.commands,
|
|
15
|
-
}
|
|
15
|
+
};
|
|
16
16
|
|
|
17
|
-
module.exports = config
|
|
17
|
+
module.exports = config;
|
|
Binary file
|
|
Binary file
|