react-native-macos 0.71.4 → 0.71.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.
@@ -12,6 +12,6 @@
12
12
  exports.version = {
13
13
  major: 0,
14
14
  minor: 71,
15
- patch: 4,
15
+ patch: 6,
16
16
  prerelease: null,
17
17
  };
@@ -142,6 +142,8 @@
142
142
 
143
143
  - (void)textInputDidChange
144
144
  {
145
+ [super textInputDidChange];
146
+
145
147
  [_scrollView setHasVerticalScroller:[self shouldShowVerticalScrollbar]];
146
148
  }
147
149
 
@@ -198,7 +198,7 @@ static void *TextFieldSelectionObservingContext = &TextFieldSelectionObservingCo
198
198
  // enter/return
199
199
  if (commandSelector == @selector(insertNewline:) || commandSelector == @selector(insertNewlineIgnoringFieldEditor:)) {
200
200
  [self textFieldDidEndEditingOnExit];
201
- if ([textInputDelegate textInputShouldReturn]) {
201
+ if ([textInputDelegate textInputShouldSubmitOnReturn]) {
202
202
  [[_backedTextInputView window] makeFirstResponder:nil];
203
203
  }
204
204
  commandHandled = YES;
@@ -434,7 +434,7 @@ static void *TextFieldSelectionObservingContext = &TextFieldSelectionObservingCo
434
434
  id<RCTBackedTextInputDelegate> textInputDelegate = [_backedTextInputView textInputDelegate];
435
435
  // enter/return
436
436
  if ((commandSelector == @selector(insertNewline:) || commandSelector == @selector(insertNewlineIgnoringFieldEditor:))) {
437
- if (textInputDelegate.textInputShouldReturn) {
437
+ if ([textInputDelegate textInputShouldSubmitOnReturn]) {
438
438
  [_backedTextInputView.window makeFirstResponder:nil];
439
439
  commandHandled = YES;
440
440
  }
@@ -23,7 +23,7 @@ NSDictionary* RCTGetReactNativeVersion(void)
23
23
  __rnVersion = @{
24
24
  RCTVersionMajor: @(0),
25
25
  RCTVersionMinor: @(71),
26
- RCTVersionPatch: @(4),
26
+ RCTVersionPatch: @(6),
27
27
  RCTVersionPrerelease: [NSNull null],
28
28
  };
29
29
  });
@@ -24,6 +24,7 @@
24
24
  #if !TARGET_OS_OSX // [macOS]
25
25
  #import "RCTRefreshControl.h"
26
26
  #else // [macOS
27
+ #import "RCTI18nUtil.h"
27
28
  #import "RCTViewKeyboardEvent.h"
28
29
  #endif // macOS]
29
30
 
@@ -263,6 +264,11 @@
263
264
  [NSAnimationContext beginGrouping];
264
265
  [[NSAnimationContext currentContext] setDuration:0.3];
265
266
  [[self.contentView animator] setBoundsOrigin:contentOffset];
267
+ // Handling a weird bug where setBoundsOrigin doesn't actually update view bounds
268
+ if ([[RCTI18nUtil sharedInstance] isRTL] && contentOffset.y < 1) {
269
+ [self.contentView scrollToPoint:contentOffset];
270
+ [self reflectScrolledClipView:self.contentView];
271
+ }
266
272
  [NSAnimationContext endGrouping];
267
273
  } else {
268
274
  self.contentOffset = contentOffset;
@@ -1,4 +1,4 @@
1
- VERSION_NAME=0.71.4
1
+ VERSION_NAME=0.71.6
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", 4,
20
+ "patch", 6,
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 = 4;
20
+ int32_t Patch = 6;
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-macos",
3
- "version": "0.71.4",
3
+ "version": "0.71.6",
4
4
  "bin": "./cli.js",
5
5
  "description": "React Native for macOS",
6
6
  "license": "MIT",
@@ -12,7 +12,7 @@
12
12
  },
13
13
  "dependencies": {
14
14
  "react": "18.2.0",
15
- "react-native-macos": "0.71.4"
15
+ "react-native-macos": "0.71.6"
16
16
  },
17
17
  "devDependencies": {
18
18
  "@babel/core": "^7.20.0",