react-native 0.73.0-rc.5 → 0.73.0-rc.7
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/Core/ReactNativeVersion.js +1 -1
- package/React/Base/RCTVersion.m +1 -1
- package/React/Views/SafeAreaView/RCTSafeAreaView.m +6 -1
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java +1 -4
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSupportManagerBase.java +9 -8
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
- package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
- package/ReactCommon/react/renderer/imagemanager/platform/ios/React-ImageManager.podspec +0 -1
- package/cli.js +2 -2
- package/package.json +7 -7
- package/scripts/cocoapods/codegen.rb +5 -16
- package/scripts/cocoapods/codegen_utils.rb +1 -0
- 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
- package/template/android/build.gradle +2 -2
- package/template/package.json +1 -1
package/React/Base/RCTVersion.m
CHANGED
|
@@ -57,7 +57,12 @@ static BOOL UIEdgeInsetsEqualToEdgeInsetsWithThreshold(UIEdgeInsets insets1, UIE
|
|
|
57
57
|
|
|
58
58
|
- (void)setSafeAreaInsets:(UIEdgeInsets)safeAreaInsets
|
|
59
59
|
{
|
|
60
|
-
|
|
60
|
+
// Relayout with different padding may result in a close but slightly different result, amplified by Yoga rounding to
|
|
61
|
+
// physical pixel grid. To avoid infinite relayout, allow one physical pixel of difference, along with small amount of
|
|
62
|
+
// extra tolerance for FP error.
|
|
63
|
+
CGFloat tolerance = 1.0 / RCTScreenScale() + 0.01;
|
|
64
|
+
|
|
65
|
+
if (UIEdgeInsetsEqualToEdgeInsetsWithThreshold(safeAreaInsets, _currentSafeAreaInsets, tolerance)) {
|
|
61
66
|
return;
|
|
62
67
|
}
|
|
63
68
|
|
|
@@ -1278,14 +1278,12 @@ public class ReactInstanceManager {
|
|
|
1278
1278
|
uiManager.stopSurface(surfaceId);
|
|
1279
1279
|
} else {
|
|
1280
1280
|
FLog.w(ReactConstants.TAG, "Failed to stop surface, UIManager has already gone away");
|
|
1281
|
-
reactRoot.getRootViewGroup().removeAllViews();
|
|
1282
1281
|
}
|
|
1283
1282
|
} else {
|
|
1284
1283
|
ReactSoftExceptionLogger.logSoftException(
|
|
1285
1284
|
TAG,
|
|
1286
1285
|
new RuntimeException(
|
|
1287
1286
|
"detachRootViewFromInstance called with ReactRootView with invalid id"));
|
|
1288
|
-
reactRoot.getRootViewGroup().removeAllViews();
|
|
1289
1287
|
}
|
|
1290
1288
|
} else {
|
|
1291
1289
|
reactContext
|
|
@@ -1294,8 +1292,7 @@ public class ReactInstanceManager {
|
|
|
1294
1292
|
.unmountApplicationComponentAtRootTag(reactRoot.getRootViewTag());
|
|
1295
1293
|
}
|
|
1296
1294
|
|
|
1297
|
-
|
|
1298
|
-
reactRoot.getRootViewGroup().setId(View.NO_ID);
|
|
1295
|
+
clearReactRoot(reactRoot);
|
|
1299
1296
|
}
|
|
1300
1297
|
|
|
1301
1298
|
@ThreadConfined(UI)
|
|
@@ -365,15 +365,16 @@ public abstract class DevSupportManagerBase implements DevSupportManager {
|
|
|
365
365
|
}
|
|
366
366
|
});
|
|
367
367
|
|
|
368
|
-
if (mDevSettings.
|
|
369
|
-
//
|
|
368
|
+
if (mDevSettings.isRemoteJSDebugEnabled()) {
|
|
369
|
+
// [Deprecated in React Native 0.73] Remote JS debugging. Handle reload
|
|
370
|
+
// via external JS executor. This capability will be removed in a future
|
|
371
|
+
// release.
|
|
372
|
+
mDevSettings.setRemoteJSDebugEnabled(false);
|
|
373
|
+
handleReloadJS();
|
|
374
|
+
}
|
|
370
375
|
|
|
371
|
-
|
|
372
|
-
//
|
|
373
|
-
if (mDevSettings.isRemoteJSDebugEnabled()) {
|
|
374
|
-
mDevSettings.setRemoteJSDebugEnabled(false);
|
|
375
|
-
handleReloadJS();
|
|
376
|
-
}
|
|
376
|
+
if (mDevSettings.isDeviceDebugEnabled() && !mDevSettings.isRemoteJSDebugEnabled()) {
|
|
377
|
+
// On-device JS debugging (CDP). Render action to open debugger frontend.
|
|
377
378
|
options.put(
|
|
378
379
|
mApplicationContext.getString(R.string.catalyst_debug_open),
|
|
379
380
|
() ->
|
package/cli.js
CHANGED
|
@@ -15,7 +15,7 @@ const {URL} = require('url');
|
|
|
15
15
|
const chalk = require('chalk');
|
|
16
16
|
const cli = require('@react-native-community/cli');
|
|
17
17
|
|
|
18
|
-
const {version: currentVersion} = require('./package.json');
|
|
18
|
+
const {version: currentVersion, name} = require('./package.json');
|
|
19
19
|
|
|
20
20
|
const isNpxRuntime = process.env.npm_lifecycle_event === 'npx';
|
|
21
21
|
const DEFAULT_REGISTRY_HOST =
|
|
@@ -67,7 +67,7 @@ async function main() {
|
|
|
67
67
|
// Ignore errors, since it's a nice to have warning
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
return cli.run();
|
|
70
|
+
return cli.run(name);
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
if (require.main === module) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native",
|
|
3
|
-
"version": "0.73.0-rc.
|
|
3
|
+
"version": "0.73.0-rc.7",
|
|
4
4
|
"description": "A framework for building native apps using React",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -93,13 +93,13 @@
|
|
|
93
93
|
},
|
|
94
94
|
"dependencies": {
|
|
95
95
|
"@jest/create-cache-key-function": "^29.6.3",
|
|
96
|
-
"@react-native-community/cli": "12.
|
|
97
|
-
"@react-native-community/cli-platform-android": "12.
|
|
98
|
-
"@react-native-community/cli-platform-ios": "12.
|
|
96
|
+
"@react-native-community/cli": "12.1.1",
|
|
97
|
+
"@react-native-community/cli-platform-android": "12.1.1",
|
|
98
|
+
"@react-native-community/cli-platform-ios": "12.1.1",
|
|
99
99
|
"@react-native/assets-registry": "^0.73.1",
|
|
100
|
-
"@react-native/community-cli-plugin": "^0.73.
|
|
101
|
-
"@react-native/codegen": "^0.73.
|
|
102
|
-
"@react-native/gradle-plugin": "^0.73.
|
|
100
|
+
"@react-native/community-cli-plugin": "^0.73.10",
|
|
101
|
+
"@react-native/codegen": "^0.73.2",
|
|
102
|
+
"@react-native/gradle-plugin": "^0.73.4",
|
|
103
103
|
"@react-native/js-polyfills": "^0.73.1",
|
|
104
104
|
"@react-native/normalize-colors": "^0.73.2",
|
|
105
105
|
"@react-native/virtualized-lists": "^0.73.3",
|
|
@@ -11,23 +11,12 @@
|
|
|
11
11
|
# - dir_manager: a class that implements the `Dir` interface. Defaults to `Dir`, the Dependency can be injected for testing purposes.
|
|
12
12
|
# @throws an error if it could not find the codegen folder.
|
|
13
13
|
def build_codegen!(react_native_path, relative_installation_root, dir_manager: Dir)
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
codegen_cli_path = ""
|
|
14
|
+
codegen_repo_path = "#{basePath(react_native_path, relative_installation_root)}/../react-native-codegen"
|
|
15
|
+
return unless dir_manager.exist?(codegen_repo_path) && !dir_manager.exist?("#{codegen_repo_path}/lib")
|
|
17
16
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
codegen_cli_path = codegen_npm_path
|
|
22
|
-
else
|
|
23
|
-
raise "[codegen] Could not find react-native-codegen."
|
|
24
|
-
end
|
|
25
|
-
|
|
26
|
-
if !dir_manager.exist?("#{codegen_cli_path}/lib")
|
|
27
|
-
Pod::UI.puts "[Codegen] building #{codegen_cli_path}."
|
|
28
|
-
system("#{codegen_cli_path}/scripts/oss/build.sh")
|
|
29
|
-
end
|
|
30
|
-
end
|
|
17
|
+
Pod::UI.puts "[Codegen] building #{codegen_repo_path}"
|
|
18
|
+
system("#{codegen_repo_path}/scripts/oss/build.sh")
|
|
19
|
+
end
|
|
31
20
|
|
|
32
21
|
# It generates an empty `ThirdPartyProvider`, required by Fabric to load the components
|
|
33
22
|
#
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
|
2
|
-
|
|
3
1
|
buildscript {
|
|
4
2
|
ext {
|
|
5
3
|
buildToolsVersion = "34.0.0"
|
|
@@ -19,3 +17,5 @@ buildscript {
|
|
|
19
17
|
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin")
|
|
20
18
|
}
|
|
21
19
|
}
|
|
20
|
+
|
|
21
|
+
apply plugin: "com.facebook.react.rootproject"
|