react-native 0.76.0 → 0.76.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/AppDelegate/RCTAppDelegate.mm +1 -0
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/Libraries/ReactNative/AppRegistry.js +3 -3
- package/React/Base/RCTVersion.m +1 -1
- package/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm +2 -0
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/HeadlessJsTaskService.java +4 -8
- package/ReactAndroid/src/main/java/com/facebook/react/defaults/DefaultReactNativeHost.kt +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
- package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
- package/package.json +8 -8
- package/scripts/cocoapods/utils.rb +4 -2
- package/scripts/codegen/generate-artifacts-executor.js +19 -4
- package/sdks/hermesc/osx-bin/hermes +0 -0
- package/sdks/hermesc/osx-bin/hermesc +0 -0
- package/sdks/hermesc/win64-bin/hermesc.exe +0 -0
|
@@ -76,6 +76,7 @@
|
|
|
76
76
|
self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
|
|
77
77
|
UIViewController *rootViewController = [self createRootViewController];
|
|
78
78
|
[self setRootView:rootView toRootViewController:rootViewController];
|
|
79
|
+
_window.windowScene.delegate = self;
|
|
79
80
|
_window.rootViewController = rootViewController;
|
|
80
81
|
[_window makeKeyAndVisible];
|
|
81
82
|
}
|
|
@@ -13,7 +13,7 @@ import type {RootTag} from '../Types/RootTagTypes';
|
|
|
13
13
|
import type {IPerformanceLogger} from '../Utilities/createPerformanceLogger';
|
|
14
14
|
import type {DisplayModeType} from './DisplayMode';
|
|
15
15
|
|
|
16
|
-
import
|
|
16
|
+
import registerCallableModule from '../Core/registerCallableModule';
|
|
17
17
|
import BugReporting from '../BugReporting/BugReporting';
|
|
18
18
|
import createPerformanceLogger from '../Utilities/createPerformanceLogger';
|
|
19
19
|
import infoLog from '../Utilities/infoLog';
|
|
@@ -363,8 +363,8 @@ global.RN$SurfaceRegistry = {
|
|
|
363
363
|
|
|
364
364
|
if (global.RN$Bridgeless === true) {
|
|
365
365
|
console.log('Bridgeless mode is enabled');
|
|
366
|
-
} else {
|
|
367
|
-
BatchedBridge.registerCallableModule('AppRegistry', AppRegistry);
|
|
368
366
|
}
|
|
369
367
|
|
|
368
|
+
registerCallableModule('AppRegistry', AppRegistry);
|
|
369
|
+
|
|
370
370
|
module.exports = AppRegistry;
|
package/React/Base/RCTVersion.m
CHANGED
|
@@ -124,15 +124,11 @@ public abstract class HeadlessJsTaskService extends Service implements HeadlessJ
|
|
|
124
124
|
@Override
|
|
125
125
|
public void onDestroy() {
|
|
126
126
|
super.onDestroy();
|
|
127
|
+
ReactContext reactContext = getReactContext();
|
|
127
128
|
|
|
128
|
-
if (
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
if (reactContext != null) {
|
|
132
|
-
HeadlessJsTaskContext headlessJsTaskContext =
|
|
133
|
-
HeadlessJsTaskContext.getInstance(reactContext);
|
|
134
|
-
headlessJsTaskContext.removeTaskEventListener(this);
|
|
135
|
-
}
|
|
129
|
+
if (reactContext != null) {
|
|
130
|
+
HeadlessJsTaskContext headlessJsTaskContext = HeadlessJsTaskContext.getInstance(reactContext);
|
|
131
|
+
headlessJsTaskContext.removeTaskEventListener(this);
|
|
136
132
|
}
|
|
137
133
|
if (sWakeLock != null) {
|
|
138
134
|
sWakeLock.release();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native",
|
|
3
|
-
"version": "0.76.
|
|
3
|
+
"version": "0.76.1",
|
|
4
4
|
"description": "A framework for building native apps using React",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -109,13 +109,13 @@
|
|
|
109
109
|
},
|
|
110
110
|
"dependencies": {
|
|
111
111
|
"@jest/create-cache-key-function": "^29.6.3",
|
|
112
|
-
"@react-native/assets-registry": "0.76.
|
|
113
|
-
"@react-native/codegen": "0.76.
|
|
114
|
-
"@react-native/community-cli-plugin": "0.76.
|
|
115
|
-
"@react-native/gradle-plugin": "0.76.
|
|
116
|
-
"@react-native/js-polyfills": "0.76.
|
|
117
|
-
"@react-native/normalize-colors": "0.76.
|
|
118
|
-
"@react-native/virtualized-lists": "0.76.
|
|
112
|
+
"@react-native/assets-registry": "0.76.1",
|
|
113
|
+
"@react-native/codegen": "0.76.1",
|
|
114
|
+
"@react-native/community-cli-plugin": "0.76.1",
|
|
115
|
+
"@react-native/gradle-plugin": "0.76.1",
|
|
116
|
+
"@react-native/js-polyfills": "0.76.1",
|
|
117
|
+
"@react-native/normalize-colors": "0.76.1",
|
|
118
|
+
"@react-native/virtualized-lists": "0.76.1",
|
|
119
119
|
"abort-controller": "^3.0.0",
|
|
120
120
|
"anser": "^1.4.9",
|
|
121
121
|
"ansi-regex": "^5.0.0",
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
# This source code is licensed under the MIT license found in the
|
|
4
4
|
# LICENSE file in the root directory of this source tree.
|
|
5
5
|
|
|
6
|
+
require 'shellwords'
|
|
7
|
+
|
|
6
8
|
require_relative "./helpers.rb"
|
|
7
9
|
|
|
8
10
|
# Utilities class for React Native Cocoapods
|
|
@@ -237,8 +239,8 @@ class ReactNativePodsUtils
|
|
|
237
239
|
# When installing pods with a yarn alias, yarn creates a fake yarn and node executables
|
|
238
240
|
# in a temporary folder.
|
|
239
241
|
# Using `node --print "process.argv[0]";` we are able to retrieve the actual path from which node is running.
|
|
240
|
-
# see https://github.com/facebook/react-native/issues/43285 for more info
|
|
241
|
-
node_binary = `node --print "process.argv[0]"
|
|
242
|
+
# see https://github.com/facebook/react-native/issues/43285 for more info. We've tweaked this slightly.
|
|
243
|
+
node_binary = Shellwords.escape(`node --print "process.argv[0]"`.strip)
|
|
242
244
|
system("echo 'export NODE_BINARY=#{node_binary}' > #{file_path}.local")
|
|
243
245
|
end
|
|
244
246
|
end
|
|
@@ -489,11 +489,22 @@ function rootCodegenTargetNeedsThirdPartyComponentProvider(pkgJson, platform) {
|
|
|
489
489
|
return !pkgJsonIncludesGeneratedCode(pkgJson) && platform === 'ios';
|
|
490
490
|
}
|
|
491
491
|
|
|
492
|
-
function dependencyNeedsThirdPartyComponentProvider(
|
|
492
|
+
function dependencyNeedsThirdPartyComponentProvider(
|
|
493
|
+
schemaInfo,
|
|
494
|
+
platform,
|
|
495
|
+
appCondegenConfigSpec,
|
|
496
|
+
) {
|
|
493
497
|
// Filter the react native core library out.
|
|
494
498
|
// In the future, core library and third party library should
|
|
495
499
|
// use the same way to generate/register the fabric components.
|
|
496
|
-
|
|
500
|
+
// We also have to filter out the the components defined in the app
|
|
501
|
+
// because the RCTThirdPartyComponentProvider is generated inside Fabric,
|
|
502
|
+
// which lives in a different target from the app and it has no visibility over
|
|
503
|
+
// the symbols defined in the app.
|
|
504
|
+
return (
|
|
505
|
+
!isReactNativeCoreLibrary(schemaInfo.library.config.name, platform) &&
|
|
506
|
+
schemaInfo.library.config.name !== appCondegenConfigSpec
|
|
507
|
+
);
|
|
497
508
|
}
|
|
498
509
|
|
|
499
510
|
function mustGenerateNativeCode(includeLibraryPath, schemaInfo) {
|
|
@@ -704,8 +715,12 @@ function execute(projectRoot, targetPlatform, baseOutputPath) {
|
|
|
704
715
|
if (
|
|
705
716
|
rootCodegenTargetNeedsThirdPartyComponentProvider(pkgJson, platform)
|
|
706
717
|
) {
|
|
707
|
-
const filteredSchemas = schemaInfos.filter(
|
|
708
|
-
dependencyNeedsThirdPartyComponentProvider
|
|
718
|
+
const filteredSchemas = schemaInfos.filter(schemaInfo =>
|
|
719
|
+
dependencyNeedsThirdPartyComponentProvider(
|
|
720
|
+
schemaInfo,
|
|
721
|
+
platform,
|
|
722
|
+
pkgJson.codegenConfig?.appCondegenConfigSpec,
|
|
723
|
+
),
|
|
709
724
|
);
|
|
710
725
|
const schemas = filteredSchemas.map(schemaInfo => schemaInfo.schema);
|
|
711
726
|
const supportedApplePlatforms = filteredSchemas.map(
|
|
Binary file
|
|
Binary file
|
|
Binary file
|