react-native 0.77.0-rc.4 → 0.77.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.
@@ -17,7 +17,7 @@ const version: $ReadOnly<{
17
17
  major: 0,
18
18
  minor: 77,
19
19
  patch: 0,
20
- prerelease: 'rc.4',
20
+ prerelease: 'rc.6',
21
21
  };
22
22
 
23
23
  module.exports = {version};
@@ -24,7 +24,7 @@ NSDictionary* RCTGetReactNativeVersion(void)
24
24
  RCTVersionMajor: @(0),
25
25
  RCTVersionMinor: @(77),
26
26
  RCTVersionPatch: @(0),
27
- RCTVersionPrerelease: @"rc.4",
27
+ RCTVersionPrerelease: @"rc.6",
28
28
  };
29
29
  });
30
30
  return __rnVersion;
@@ -68,6 +68,8 @@ static NSSet<NSNumber *> *returnKeyTypesSet;
68
68
  * later comparison insensitive to them.
69
69
  */
70
70
  NSDictionary<NSAttributedStringKey, id> *_originalTypingAttributes;
71
+
72
+ BOOL _hasInputAccessoryView;
71
73
  }
72
74
 
73
75
  #pragma mark - UIView overrides
@@ -610,10 +612,12 @@ static NSSet<NSNumber *> *returnKeyTypesSet;
610
612
  keyboardType == UIKeyboardTypeDecimalPad || keyboardType == UIKeyboardTypeASCIICapableNumberPad) &&
611
613
  (containsKeyType || containsInputAccessoryViewButtonLabel);
612
614
 
613
- if ((_backedTextInputView.inputAccessoryView != nil) == shouldHaveInputAccessoryView) {
615
+ if (_hasInputAccessoryView == shouldHaveInputAccessoryView) {
614
616
  return;
615
617
  }
616
618
 
619
+ _hasInputAccessoryView = shouldHaveInputAccessoryView;
620
+
617
621
  if (shouldHaveInputAccessoryView) {
618
622
  NSString *buttonLabel = inputAccessoryViewButtonLabel != nil ? inputAccessoryViewButtonLabel
619
623
  : [self returnKeyTypeToString:returnKeyType];
@@ -639,6 +643,8 @@ static NSSet<NSNumber *> *returnKeyTypesSet;
639
643
 
640
644
  - (void)handleInputAccessoryDoneButton
641
645
  {
646
+ // Ignore the value of whether we submitted; just make sure the submit event is called if necessary.
647
+ [self textInputShouldSubmitOnReturn];
642
648
  if ([self textInputShouldReturn]) {
643
649
  [_backedTextInputView endEditing:YES];
644
650
  }
@@ -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.4
1
+ VERSION_NAME=0.77.0-rc.6
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.4");
21
+ "prerelease", "rc.6");
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.4";
21
+ std::string_view Prerelease = "rc.6";
22
22
  } ReactNativeVersion;
23
23
 
24
24
  } // namespace facebook::react
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native",
3
- "version": "0.77.0-rc.4",
3
+ "version": "0.77.0-rc.6",
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.4",
112
- "@react-native/codegen": "0.77.0-rc.4",
113
- "@react-native/community-cli-plugin": "0.77.0-rc.4",
114
- "@react-native/gradle-plugin": "0.77.0-rc.4",
115
- "@react-native/js-polyfills": "0.77.0-rc.4",
116
- "@react-native/normalize-colors": "0.77.0-rc.4",
117
- "@react-native/virtualized-lists": "0.77.0-rc.4",
111
+ "@react-native/assets-registry": "0.77.0-rc.6",
112
+ "@react-native/codegen": "0.77.0-rc.6",
113
+ "@react-native/community-cli-plugin": "0.77.0-rc.6",
114
+ "@react-native/gradle-plugin": "0.77.0-rc.6",
115
+ "@react-native/js-polyfills": "0.77.0-rc.6",
116
+ "@react-native/normalize-colors": "0.77.0-rc.6",
117
+ "@react-native/virtualized-lists": "0.77.0-rc.6",
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