react-native 0.73.0-rc.5 → 0.73.0-rc.6

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.
@@ -13,5 +13,5 @@ exports.version = {
13
13
  major: 0,
14
14
  minor: 73,
15
15
  patch: 0,
16
- prerelease: 'rc.5',
16
+ prerelease: 'rc.6',
17
17
  };
@@ -24,7 +24,7 @@ NSDictionary* RCTGetReactNativeVersion(void)
24
24
  RCTVersionMajor: @(0),
25
25
  RCTVersionMinor: @(73),
26
26
  RCTVersionPatch: @(0),
27
- RCTVersionPrerelease: @"rc.5",
27
+ RCTVersionPrerelease: @"rc.6",
28
28
  };
29
29
  });
30
30
  return __rnVersion;
@@ -57,7 +57,12 @@ static BOOL UIEdgeInsetsEqualToEdgeInsetsWithThreshold(UIEdgeInsets insets1, UIE
57
57
 
58
58
  - (void)setSafeAreaInsets:(UIEdgeInsets)safeAreaInsets
59
59
  {
60
- if (UIEdgeInsetsEqualToEdgeInsetsWithThreshold(safeAreaInsets, _currentSafeAreaInsets, 1.0 / RCTScreenScale())) {
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
 
@@ -1,4 +1,4 @@
1
- VERSION_NAME=0.73.0-rc.5
1
+ VERSION_NAME=0.73.0-rc.6
2
2
  react.internal.publishingGroup=com.facebook.react
3
3
 
4
4
  android.useAndroidX=true
@@ -365,15 +365,16 @@ public abstract class DevSupportManagerBase implements DevSupportManager {
365
365
  }
366
366
  });
367
367
 
368
- if (mDevSettings.isDeviceDebugEnabled()) {
369
- // On-device JS debugging (CDP). Render action to open debugger frontend.
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
- // Reset the old debugger setting so no one gets stuck.
372
- // TODO: Remove in a few weeks.
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
  () ->
@@ -18,5 +18,5 @@ public class ReactNativeVersion {
18
18
  "major", 0,
19
19
  "minor", 73,
20
20
  "patch", 0,
21
- "prerelease", "rc.5");
21
+ "prerelease", "rc.6");
22
22
  }
@@ -18,7 +18,7 @@ constexpr struct {
18
18
  int32_t Major = 0;
19
19
  int32_t Minor = 73;
20
20
  int32_t Patch = 0;
21
- std::string_view Prerelease = "rc.5";
21
+ std::string_view Prerelease = "rc.6";
22
22
  } ReactNativeVersion;
23
23
 
24
24
  } // namespace facebook::react
@@ -56,7 +56,6 @@ Pod::Spec.new do |s|
56
56
 
57
57
  s.dependency "RCT-Folly/Fabric"
58
58
  s.dependency "React-Core/Default"
59
- s.dependency "React-RCTImage"
60
59
  s.dependency "glog"
61
60
 
62
61
  add_dependency(s, "React-Fabric")
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.5",
3
+ "version": "0.73.0-rc.6",
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.0.0",
97
- "@react-native-community/cli-platform-android": "12.0.0",
98
- "@react-native-community/cli-platform-ios": "12.0.0",
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.9",
101
- "@react-native/codegen": "^0.73.1",
102
- "@react-native/gradle-plugin": "^0.73.3",
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
- codegen_repo_path = "#{basePath(react_native_path, relative_installation_root)}/../react-native-codegen";
15
- codegen_npm_path = "#{basePath(react_native_path, relative_installation_root)}/../@react-native/codegen";
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
- if dir_manager.exist?(codegen_repo_path)
19
- codegen_cli_path = codegen_repo_path
20
- elsif dir_manager.exist?(codegen_npm_path)
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
  #
@@ -144,6 +144,7 @@ class CodegenUtils
144
144
  'React-graphics': [],
145
145
  'React-rendererdebug': [],
146
146
  'React-Fabric': [],
147
+ 'React-FabricImage': [],
147
148
  'React-debug': [],
148
149
  'React-utils': [],
149
150
  });
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"
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "dependencies": {
13
13
  "react": "18.2.0",
14
- "react-native": "0.73.0-rc.5"
14
+ "react-native": "0.73.0-rc.6"
15
15
  },
16
16
  "devDependencies": {
17
17
  "@babel/core": "^7.20.0",