react-native 0.74.0-rc.6 → 0.74.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.
@@ -107,7 +107,7 @@ typedef RCTBridge *_Nonnull (
107
107
  *
108
108
  * @parameter: moduleName - the name of the app, used by Metro to resolve the module.
109
109
  * @parameter: initialProperties - a set of initial properties.
110
- * @parameter: moduleName - a dictionary with a set of options.
110
+ * @parameter: launchOptions - a dictionary with a set of options.
111
111
  */
112
112
  - (UIView *_Nonnull)viewWithModuleName:(NSString *)moduleName
113
113
  initialProperties:(NSDictionary *__nullable)initialProperties
@@ -17,7 +17,7 @@ const version: $ReadOnly<{
17
17
  major: 0,
18
18
  minor: 74,
19
19
  patch: 0,
20
- prerelease: 'rc.6',
20
+ prerelease: 'rc.7',
21
21
  };
22
22
 
23
23
  module.exports = {version};
@@ -24,7 +24,7 @@ NSDictionary* RCTGetReactNativeVersion(void)
24
24
  RCTVersionMajor: @(0),
25
25
  RCTVersionMinor: @(74),
26
26
  RCTVersionPatch: @(0),
27
- RCTVersionPrerelease: @"rc.6",
27
+ RCTVersionPrerelease: @"rc.7",
28
28
  };
29
29
  });
30
30
  return __rnVersion;
@@ -89,6 +89,9 @@ RCT_EXPORT_MODULE()
89
89
 
90
90
  - (void)invalidate
91
91
  {
92
+ if (_invalidated) {
93
+ return;
94
+ }
92
95
  _invalidated = YES;
93
96
  [self _cleanupObservers];
94
97
  }
@@ -109,10 +112,7 @@ RCT_EXPORT_MODULE()
109
112
 
110
113
  [[NSNotificationCenter defaultCenter] removeObserver:self name:RCTWindowFrameDidChangeNotification object:nil];
111
114
 
112
- [[NSNotificationCenter defaultCenter] addObserver:self
113
- selector:@selector(invalidate)
114
- name:RCTBridgeWillInvalidateModulesNotification
115
- object:nil];
115
+ [[NSNotificationCenter defaultCenter] removeObserver:self name:RCTBridgeWillInvalidateModulesNotification object:nil];
116
116
  }
117
117
 
118
118
  static BOOL RCTIsIPhoneNotched()
@@ -1680,6 +1680,16 @@ static UIView *_jsResponder;
1680
1680
  return self;
1681
1681
  }
1682
1682
 
1683
+ - (NSUInteger)count
1684
+ {
1685
+ return self->_registry.count;
1686
+ }
1687
+
1688
+ - (NSEnumerator *)keyEnumerator
1689
+ {
1690
+ return self->_registry.keyEnumerator;
1691
+ }
1692
+
1683
1693
  - (id)objectForKey:(id)key
1684
1694
  {
1685
1695
  if (![key isKindOfClass:[NSNumber class]]) {
@@ -1,4 +1,4 @@
1
- VERSION_NAME=0.74.0-rc.6
1
+ VERSION_NAME=0.74.0-rc.7
2
2
  react.internal.publishingGroup=com.facebook.react
3
3
 
4
4
  android.useAndroidX=true
@@ -18,5 +18,5 @@ public class ReactNativeVersion {
18
18
  "major", 0,
19
19
  "minor", 74,
20
20
  "patch", 0,
21
- "prerelease", "rc.6");
21
+ "prerelease", "rc.7");
22
22
  }
@@ -18,7 +18,7 @@ constexpr struct {
18
18
  int32_t Major = 0;
19
19
  int32_t Minor = 74;
20
20
  int32_t Patch = 0;
21
- std::string_view Prerelease = "rc.6";
21
+ std::string_view Prerelease = "rc.7";
22
22
  } ReactNativeVersion;
23
23
 
24
24
  } // namespace facebook::react
@@ -41,7 +41,7 @@ Pod::Spec.new do |s|
41
41
  s.compiler_flags = folly_compiler_flags + ' ' + boost_compiler_flags
42
42
 
43
43
  if ENV['USE_FRAMEWORKS']
44
- s.header_mappings_dir = './'
44
+ s.header_mappings_dir = '../'
45
45
  s.module_name = 'React_jserrorhandler'
46
46
  end
47
47
 
@@ -219,7 +219,10 @@ static jsi::Value convertJSErrorDetailsToJSRuntimeError(jsi::Runtime &runtime, N
219
219
  NSString *message = jsErrorDetails[@"message"];
220
220
 
221
221
  auto jsError = createJSRuntimeError(runtime, [message UTF8String]);
222
- jsError.asObject(runtime).setProperty(runtime, "cause", convertObjCObjectToJSIValue(runtime, jsErrorDetails));
222
+ for (NSString *key in jsErrorDetails) {
223
+ id value = jsErrorDetails[key];
224
+ jsError.asObject(runtime).setProperty(runtime, [key UTF8String], convertObjCObjectToJSIValue(runtime, value));
225
+ }
223
226
 
224
227
  return jsError;
225
228
  }
@@ -42,7 +42,7 @@ Pod::Spec.new do |s|
42
42
  s.compiler_flags = folly_compiler_flags + ' ' + boost_compiler_flags
43
43
 
44
44
  if ENV['USE_FRAMEWORKS']
45
- s.header_mappings_dir = './'
45
+ s.header_mappings_dir = '../../'
46
46
  s.module_name = 'React_RuntimeCore'
47
47
  end
48
48
 
@@ -32,7 +32,10 @@ Pod::Spec.new do |spec|
32
32
  spec.requires_arc = false
33
33
  spec.pod_target_xcconfig = {
34
34
  'DEFINES_MODULE' => 'YES'
35
- }
35
+ }.merge!(ENV['USE_FRAMEWORKS'] != nil ? {
36
+ 'HEADER_SEARCH_PATHS' => '"$(PODS_TARGET_SRCROOT)"'
37
+ } : {})
38
+
36
39
  spec.compiler_flags = [
37
40
  '-fno-omit-frame-pointer',
38
41
  '-fexceptions',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native",
3
- "version": "0.74.0-rc.6",
3
+ "version": "0.74.0-rc.7",
4
4
  "description": "A framework for building native apps using React",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -110,13 +110,13 @@
110
110
  "@react-native-community/cli": "13.6.4",
111
111
  "@react-native-community/cli-platform-android": "13.6.4",
112
112
  "@react-native-community/cli-platform-ios": "13.6.4",
113
- "@react-native/assets-registry": "0.74.77",
114
- "@react-native/codegen": "0.74.77",
115
- "@react-native/community-cli-plugin": "0.74.77",
116
- "@react-native/gradle-plugin": "0.74.77",
117
- "@react-native/js-polyfills": "0.74.77",
118
- "@react-native/normalize-colors": "0.74.77",
119
- "@react-native/virtualized-lists": "0.74.77",
113
+ "@react-native/assets-registry": "0.74.78",
114
+ "@react-native/codegen": "0.74.78",
115
+ "@react-native/community-cli-plugin": "0.74.78",
116
+ "@react-native/gradle-plugin": "0.74.78",
117
+ "@react-native/js-polyfills": "0.74.78",
118
+ "@react-native/normalize-colors": "0.74.78",
119
+ "@react-native/virtualized-lists": "0.74.78",
120
120
  "abort-controller": "^3.0.0",
121
121
  "anser": "^1.4.9",
122
122
  "ansi-regex": "^5.0.0",
@@ -189,7 +189,7 @@ class ReactNativePodsUtils
189
189
  installer.target_installation_results.pod_target_installation_results.each do |pod_name, target_installation_result|
190
190
  if pod_name.to_s == target_pod_name
191
191
  target_installation_result.native_target.build_configurations.each do |config|
192
- if configuration == nil || (configuration != nil && configuration == config.name)
192
+ if configuration == nil || (configuration != nil && config.name.include?(configuration))
193
193
  config.build_settings[settings_name] ||= '$(inherited) '
194
194
  config.build_settings[settings_name] << settings_value
195
195
  end
@@ -7,8 +7,6 @@
7
7
  # Defines functions for building various Hermes frameworks.
8
8
  # See build-ios-framework.sh and build-mac-framework.sh for usage examples.
9
9
 
10
- set -x -e
11
-
12
10
  CURR_SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)"
13
11
 
14
12
  IMPORT_HERMESC_PATH=${HERMES_OVERRIDE_HERMESC_PATH:-$PWD/build_host_hermesc/ImportHermesc.cmake}
@@ -4,7 +4,10 @@
4
4
  # This source code is licensed under the MIT license found in the
5
5
  # LICENSE file in the root directory of this source tree.
6
6
 
7
- set -x -e
7
+ if [ "$CI" ]; then
8
+ set -x
9
+ fi
10
+ set -e
8
11
 
9
12
  # Given a specific target, retrieve the right architecture for it
10
13
  # $1 the target you want to build. Allowed values: iphoneos, iphonesimulator, catalyst
@@ -4,7 +4,10 @@
4
4
  # This source code is licensed under the MIT license found in the
5
5
  # LICENSE file in the root directory of this source tree.
6
6
 
7
- set -x -e
7
+ if [ "$CI" ]; then
8
+ set -x
9
+ fi
10
+ set -e
8
11
 
9
12
  # shellcheck source=xplat/js/react-native-github/sdks/hermes-engine/utils/build-apple-framework.sh
10
13
  CURR_SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)"
Binary file
Binary file
Binary file
@@ -11,16 +11,16 @@
11
11
  },
12
12
  "dependencies": {
13
13
  "react": "18.2.0",
14
- "react-native": "0.74.0-rc.6"
14
+ "react-native": "0.74.0-rc.7"
15
15
  },
16
16
  "devDependencies": {
17
17
  "@babel/core": "^7.20.0",
18
18
  "@babel/preset-env": "^7.20.0",
19
19
  "@babel/runtime": "^7.20.0",
20
- "@react-native/babel-preset": "0.74.77",
21
- "@react-native/eslint-config": "0.74.77",
22
- "@react-native/metro-config": "0.74.77",
23
- "@react-native/typescript-config": "0.74.77",
20
+ "@react-native/babel-preset": "0.74.78",
21
+ "@react-native/eslint-config": "0.74.78",
22
+ "@react-native/metro-config": "0.74.78",
23
+ "@react-native/typescript-config": "0.74.78",
24
24
  "@types/react": "^18.2.6",
25
25
  "@types/react-test-renderer": "^18.0.0",
26
26
  "babel-jest": "^29.6.3",