react-native 0.77.0-rc.5 → 0.77.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.
@@ -17,7 +17,7 @@ const version: $ReadOnly<{
17
17
  major: 0,
18
18
  minor: 77,
19
19
  patch: 0,
20
- prerelease: 'rc.5',
20
+ prerelease: 'rc.7',
21
21
  };
22
22
 
23
23
  module.exports = {version};
@@ -476,7 +476,7 @@ RCT_NOT_IMPLEMENTED(-(instancetype)initWithFrame : (CGRect)frame)
476
476
  _maxLength.integerValue - (NSInteger)backedTextInputView.attributedText.string.length + (NSInteger)range.length,
477
477
  0);
478
478
 
479
- if (text.length > _maxLength.integerValue) {
479
+ if (text.length > allowedLength) {
480
480
  // If we typed/pasted more than one character, limit the text inputted.
481
481
  if (text.length > 1) {
482
482
  if (allowedLength > 0) {
@@ -24,7 +24,7 @@ NSDictionary* RCTGetReactNativeVersion(void)
24
24
  RCTVersionMajor: @(0),
25
25
  RCTVersionMinor: @(77),
26
26
  RCTVersionPatch: @(0),
27
- RCTVersionPrerelease: @"rc.5",
27
+ RCTVersionPrerelease: @"rc.7",
28
28
  };
29
29
  });
30
30
  return __rnVersion;
@@ -39,9 +39,19 @@ if (PROJECT_ROOT_DIR)
39
39
  # variable is defined if user need to access it.
40
40
  endif ()
41
41
 
42
- file(GLOB input_SRC CONFIGURE_DEPENDS
43
- ${REACT_ANDROID_DIR}/cmake-utils/default-app-setup/*.cpp
44
- ${BUILD_DIR}/generated/autolinking/src/main/jni/*.cpp)
42
+ file(GLOB override_cpp_SRC CONFIGURE_DEPENDS *.cpp)
43
+ # We check if the user is providing a custom OnLoad.cpp file. If so, we pick that
44
+ # for compilation. Otherwise we fallback to using the `default-app-setup/OnLoad.cpp`
45
+ # file instead.
46
+ if(override_cpp_SRC)
47
+ file(GLOB input_SRC CONFIGURE_DEPENDS
48
+ *.cpp
49
+ ${BUILD_DIR}/generated/autolinking/src/main/jni/*.cpp)
50
+ else()
51
+ file(GLOB input_SRC CONFIGURE_DEPENDS
52
+ ${REACT_ANDROID_DIR}/cmake-utils/default-app-setup/*.cpp
53
+ ${BUILD_DIR}/generated/autolinking/src/main/jni/*.cpp)
54
+ endif()
45
55
 
46
56
  add_library(${CMAKE_PROJECT_NAME} SHARED ${input_SRC})
47
57
 
@@ -1,4 +1,4 @@
1
- VERSION_NAME=0.77.0-rc.5
1
+ VERSION_NAME=0.77.0-rc.7
2
2
  react.internal.publishingGroup=com.facebook.react
3
3
 
4
4
  android.useAndroidX=true
@@ -268,8 +268,12 @@ public class StackTraceHelper {
268
268
  List<ReadableMap> readableMapList = new ArrayList<>();
269
269
  for (ParsedError.StackFrame frame : frames) {
270
270
  JavaOnlyMap map = new JavaOnlyMap();
271
- map.putDouble(COLUMN_KEY, frame.getColumn());
272
- map.putDouble(LINE_NUMBER_KEY, frame.getLineNumber());
271
+ if (frame.getColumn() != null) {
272
+ map.putDouble(COLUMN_KEY, frame.getColumn());
273
+ }
274
+ if (frame.getLineNumber() != null) {
275
+ map.putDouble(LINE_NUMBER_KEY, frame.getLineNumber());
276
+ }
273
277
  map.putString(FILE_KEY, (String) frame.getFile());
274
278
  map.putString(METHOD_NAME_KEY, (String) frame.getMethodName());
275
279
  readableMapList.add(map);
@@ -18,5 +18,5 @@ public class ReactNativeVersion {
18
18
  "major", 0,
19
19
  "minor", 77,
20
20
  "patch", 0,
21
- "prerelease", "rc.5");
21
+ "prerelease", "rc.7");
22
22
  }
@@ -18,7 +18,7 @@ constexpr struct {
18
18
  int32_t Major = 0;
19
19
  int32_t Minor = 77;
20
20
  int32_t Patch = 0;
21
- std::string_view Prerelease = "rc.5";
21
+ std::string_view Prerelease = "rc.7";
22
22
  } ReactNativeVersion;
23
23
 
24
24
  } // namespace facebook::react
@@ -208,8 +208,7 @@ inline bool operator==(
208
208
  return areAttributedStringsEquivalentLayoutWise(
209
209
  lhs.attributedString, rhs.attributedString) &&
210
210
  lhs.paragraphAttributes == rhs.paragraphAttributes &&
211
- lhs.layoutConstraints.maximumSize.width ==
212
- rhs.layoutConstraints.maximumSize.width;
211
+ lhs.layoutConstraints == rhs.layoutConstraints;
213
212
  }
214
213
 
215
214
  inline bool operator!=(
@@ -243,7 +242,7 @@ struct hash<facebook::react::TextMeasureCacheKey> {
243
242
  return facebook::react::hash_combine(
244
243
  attributedStringHashLayoutWise(key.attributedString),
245
244
  key.paragraphAttributes,
246
- key.layoutConstraints.maximumSize.width);
245
+ key.layoutConstraints);
247
246
  }
248
247
  };
249
248
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native",
3
- "version": "0.77.0-rc.5",
3
+ "version": "0.77.0-rc.7",
4
4
  "description": "A framework for building native apps using React",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -108,13 +108,13 @@
108
108
  },
109
109
  "dependencies": {
110
110
  "@jest/create-cache-key-function": "^29.6.3",
111
- "@react-native/assets-registry": "0.77.0-rc.5",
112
- "@react-native/codegen": "0.77.0-rc.5",
113
- "@react-native/community-cli-plugin": "0.77.0-rc.5",
114
- "@react-native/gradle-plugin": "0.77.0-rc.5",
115
- "@react-native/js-polyfills": "0.77.0-rc.5",
116
- "@react-native/normalize-colors": "0.77.0-rc.5",
117
- "@react-native/virtualized-lists": "0.77.0-rc.5",
111
+ "@react-native/assets-registry": "0.77.0-rc.7",
112
+ "@react-native/codegen": "0.77.0-rc.7",
113
+ "@react-native/community-cli-plugin": "0.77.0-rc.7",
114
+ "@react-native/gradle-plugin": "0.77.0-rc.7",
115
+ "@react-native/js-polyfills": "0.77.0-rc.7",
116
+ "@react-native/normalize-colors": "0.77.0-rc.7",
117
+ "@react-native/virtualized-lists": "0.77.0-rc.7",
118
118
  "abort-controller": "^3.0.0",
119
119
  "anser": "^1.4.9",
120
120
  "ansi-regex": "^5.0.0",
Binary file
Binary file
Binary file
Binary file
@@ -4,7 +4,7 @@
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
- * @generated SignedSource<<83b5798ee1c7a28fffbf110e19641d69>>
7
+ * @generated SignedSource<<aa51de14d1f085127ad410580beb15f6>>
8
8
  * @flow strict
9
9
  */
10
10
 
@@ -170,7 +170,7 @@ export const shouldUseSetNativePropsInFabric: Getter<boolean> = createJavaScript
170
170
  /**
171
171
  * Changes construction of the animation graph to `useInsertionEffect` instead of `useLayoutEffect`.
172
172
  */
173
- export const useInsertionEffectsForAnimations: Getter<boolean> = createJavaScriptFlagGetter('useInsertionEffectsForAnimations', true);
173
+ export const useInsertionEffectsForAnimations: Getter<boolean> = createJavaScriptFlagGetter('useInsertionEffectsForAnimations', false);
174
174
 
175
175
  /**
176
176
  * Enable a variant of TextInput that moves some state to refs to avoid unnecessary re-renders