react-native 0.71.17 → 0.71.18

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.
@@ -12,6 +12,6 @@
12
12
  exports.version = {
13
13
  major: 0,
14
14
  minor: 71,
15
- patch: 17,
15
+ patch: 18,
16
16
  prerelease: null,
17
17
  };
@@ -192,7 +192,7 @@ export function parseComponentStack(message: string): ComponentStack {
192
192
  if (!s) {
193
193
  return null;
194
194
  }
195
- const match = s.match(/(.*) \(at (.*\.js):([\d]+)\)/);
195
+ const match = s.match(/(.*) \(at (.*\.(?:js|jsx|ts|tsx)):([\d]+)\)/);
196
196
  if (!match) {
197
197
  return null;
198
198
  }
@@ -23,7 +23,7 @@ NSDictionary* RCTGetReactNativeVersion(void)
23
23
  __rnVersion = @{
24
24
  RCTVersionMajor: @(0),
25
25
  RCTVersionMinor: @(71),
26
- RCTVersionPatch: @(17),
26
+ RCTVersionPatch: @(18),
27
27
  RCTVersionPrerelease: [NSNull null],
28
28
  };
29
29
  });
@@ -1,4 +1,4 @@
1
- VERSION_NAME=0.71.17
1
+ VERSION_NAME=0.71.18
2
2
  GROUP=com.facebook.react
3
3
 
4
4
  # JVM Versions
@@ -17,6 +17,6 @@ public class ReactNativeVersion {
17
17
  public static final Map<String, Object> VERSION = MapBuilder.<String, Object>of(
18
18
  "major", 0,
19
19
  "minor", 71,
20
- "patch", 17,
20
+ "patch", 18,
21
21
  "prerelease", null);
22
22
  }
@@ -17,7 +17,7 @@ namespace facebook::react {
17
17
  constexpr struct {
18
18
  int32_t Major = 0;
19
19
  int32_t Minor = 71;
20
- int32_t Patch = 17;
20
+ int32_t Patch = 18;
21
21
  std::string_view Prerelease = "";
22
22
  } ReactNativeVersion;
23
23
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native",
3
- "version": "0.71.17",
3
+ "version": "0.71.18",
4
4
  "bin": "./cli.js",
5
5
  "description": "A framework for building native apps using React",
6
6
  "license": "MIT",
@@ -144,6 +144,27 @@ class ReactNativePodsUtils
144
144
  end
145
145
  end
146
146
 
147
+ def self.fix_flipper_for_xcode_15_3(installer)
148
+ installer.pods_project.targets.each do |target|
149
+ if target.name == 'Flipper'
150
+ file_path = 'Pods/Flipper/xplat/Flipper/FlipperTransportTypes.h'
151
+ if !File.exist?(file_path)
152
+ return
153
+ end
154
+
155
+ contents = File.read(file_path)
156
+ if contents.include?('#include <functional>')
157
+ return
158
+ end
159
+ mod_content = contents.gsub("#pragma once", "#pragma once\n#include <functional>")
160
+ File.chmod(0755, file_path)
161
+ File.open(file_path, 'w') do |file|
162
+ file.puts(mod_content)
163
+ end
164
+ end
165
+ end
166
+ end
167
+
147
168
  def self.apply_xcode_15_patch(installer, xcodebuild_manager: Xcodebuild)
148
169
  projects = self.extract_projects(installer)
149
170
 
@@ -226,6 +226,7 @@ def react_native_post_install(installer, react_native_path = "../node_modules/re
226
226
  ReactNativePodsUtils.set_node_modules_user_settings(installer, react_native_path)
227
227
  ReactNativePodsUtils.apply_xcode_15_patch(installer)
228
228
  ReactNativePodsUtils.updateIphoneOSDeploymentTarget(installer)
229
+ ReactNativePodsUtils.fix_flipper_for_xcode_15_3(installer)
229
230
 
230
231
  NewArchitectureHelper.set_clang_cxx_language_standard_if_needed(installer)
231
232
  is_new_arch_enabled = ENV['RCT_NEW_ARCH_ENABLED'] == "1"
Binary file
Binary file
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "dependencies": {
13
13
  "react": "18.2.0",
14
- "react-native": "0.71.17"
14
+ "react-native": "0.71.18"
15
15
  },
16
16
  "devDependencies": {
17
17
  "@babel/core": "^7.20.0",