react-native 0.75.0-rc.3 → 0.75.0-rc.4

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.
@@ -17,7 +17,7 @@ const version: $ReadOnly<{
17
17
  major: 0,
18
18
  minor: 75,
19
19
  patch: 0,
20
- prerelease: 'rc.3',
20
+ prerelease: 'rc.4',
21
21
  };
22
22
 
23
23
  module.exports = {version};
@@ -24,7 +24,7 @@ NSDictionary* RCTGetReactNativeVersion(void)
24
24
  RCTVersionMajor: @(0),
25
25
  RCTVersionMinor: @(75),
26
26
  RCTVersionPatch: @(0),
27
- RCTVersionPrerelease: @"rc.3",
27
+ RCTVersionPrerelease: @"rc.4",
28
28
  };
29
29
  });
30
30
  return __rnVersion;
@@ -1,4 +1,4 @@
1
- VERSION_NAME=0.75.0-rc.3
1
+ VERSION_NAME=0.75.0-rc.4
2
2
  react.internal.publishingGroup=com.facebook.react
3
3
 
4
4
  android.useAndroidX=true
@@ -20,12 +20,14 @@ import java.util.Locale
20
20
  public object AndroidUnicodeUtils {
21
21
 
22
22
  @DoNotStrip
23
+ @JvmStatic
23
24
  public fun localeCompare(left: String?, right: String?): Int {
24
25
  val collator = Collator.getInstance()
25
26
  return collator.compare(left, right)
26
27
  }
27
28
 
28
29
  @DoNotStrip
30
+ @JvmStatic
29
31
  public fun dateFormat(unixtimeMs: Double, formatDate: Boolean, formatTime: Boolean): String {
30
32
  val format =
31
33
  when {
@@ -53,6 +55,7 @@ public object AndroidUnicodeUtils {
53
55
  }
54
56
 
55
57
  @DoNotStrip
58
+ @JvmStatic
56
59
  public fun normalize(input: String?, form: Int): String =
57
60
  when (form) {
58
61
  FORM_C -> Normalizer.normalize(input, Normalizer.Form.NFC)
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ package com.facebook.react.common.build;
9
+
10
+ import com.facebook.react.BuildConfig;
11
+
12
+ /**
13
+ * Convenience class for accessing auto-generated BuildConfig so that a) other modules can just
14
+ * depend on this module instead of having to manually depend on generating their own build config
15
+ * and b) we don't have to deal with IntelliJ getting confused about the autogenerated BuildConfig
16
+ * class all over the place.
17
+ */
18
+ public class ReactBuildConfig {
19
+
20
+ public static final boolean DEBUG = BuildConfig.DEBUG;
21
+ public static final boolean IS_INTERNAL_BUILD = BuildConfig.IS_INTERNAL_BUILD;
22
+ public static final int EXOPACKAGE_FLAGS = BuildConfig.EXOPACKAGE_FLAGS;
23
+ }
@@ -18,5 +18,5 @@ public class ReactNativeVersion {
18
18
  "major", 0,
19
19
  "minor", 75,
20
20
  "patch", 0,
21
- "prerelease", "rc.3");
21
+ "prerelease", "rc.4");
22
22
  }
@@ -18,7 +18,7 @@ constexpr struct {
18
18
  int32_t Major = 0;
19
19
  int32_t Minor = 75;
20
20
  int32_t Patch = 0;
21
- std::string_view Prerelease = "rc.3";
21
+ std::string_view Prerelease = "rc.4";
22
22
  } ReactNativeVersion;
23
23
 
24
24
  } // namespace facebook::react
@@ -410,4 +410,10 @@ SharedDebugStringConvertibleList ShadowNode::getDebugProps() const {
410
410
  }
411
411
  #endif
412
412
 
413
+ // Explicitly define destructors here, as they need to exist in order to act as
414
+ // a "key function" for the ShadowNodeWrapper class -- this allows for RTTI to
415
+ // work properly across dynamic library boundaries (i.e. dynamic_cast that is
416
+ // used by getNativeState method)
417
+ ShadowNodeWrapper::~ShadowNodeWrapper() = default;
418
+
413
419
  } // namespace facebook::react
@@ -282,6 +282,11 @@ struct ShadowNodeWrapper : public jsi::NativeState {
282
282
  explicit ShadowNodeWrapper(ShadowNode::Shared shadowNode)
283
283
  : shadowNode(std::move(shadowNode)) {}
284
284
 
285
+ // The below method needs to be implemented out-of-line in order for the class
286
+ // to have at least one "key function" (see
287
+ // https://itanium-cxx-abi.github.io/cxx-abi/abi.html#vague-vtable)
288
+ ~ShadowNodeWrapper() override;
289
+
285
290
  ShadowNode::Shared shadowNode;
286
291
  };
287
292
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native",
3
- "version": "0.75.0-rc.3",
3
+ "version": "0.75.0-rc.4",
4
4
  "description": "A framework for building native apps using React",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -112,13 +112,13 @@
112
112
  "@react-native-community/cli": "14.0.0-alpha.11",
113
113
  "@react-native-community/cli-platform-android": "14.0.0-alpha.11",
114
114
  "@react-native-community/cli-platform-ios": "14.0.0-alpha.11",
115
- "@react-native/assets-registry": "0.75.0-rc.3",
116
- "@react-native/codegen": "0.75.0-rc.3",
117
- "@react-native/community-cli-plugin": "0.75.0-rc.3",
118
- "@react-native/gradle-plugin": "0.75.0-rc.3",
119
- "@react-native/js-polyfills": "0.75.0-rc.3",
120
- "@react-native/normalize-colors": "0.75.0-rc.3",
121
- "@react-native/virtualized-lists": "0.75.0-rc.3",
115
+ "@react-native/assets-registry": "0.75.0-rc.4",
116
+ "@react-native/codegen": "0.75.0-rc.4",
117
+ "@react-native/community-cli-plugin": "0.75.0-rc.4",
118
+ "@react-native/gradle-plugin": "0.75.0-rc.4",
119
+ "@react-native/js-polyfills": "0.75.0-rc.4",
120
+ "@react-native/normalize-colors": "0.75.0-rc.4",
121
+ "@react-native/virtualized-lists": "0.75.0-rc.4",
122
122
  "abort-controller": "^3.0.0",
123
123
  "anser": "^1.4.9",
124
124
  "ansi-regex": "^5.0.0",
@@ -137,7 +137,7 @@
137
137
  "nullthrows": "^1.1.1",
138
138
  "pretty-format": "^26.5.2",
139
139
  "promise": "^8.3.0",
140
- "react-devtools-core": "5.1.0",
140
+ "react-devtools-core": "^5.3.1",
141
141
  "react-refresh": "^0.14.0",
142
142
  "regenerator-runtime": "^0.13.2",
143
143
  "scheduler": "0.25.0-rc-fb9a90fa48-20240614",
Binary file
Binary file
Binary file