react-native-macos 0.68.56 → 0.68.58

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.
@@ -16,6 +16,6 @@
16
16
  exports.version = {
17
17
  major: 0,
18
18
  minor: 68,
19
- patch: 56,
19
+ patch: 58,
20
20
  prerelease: null,
21
21
  };
@@ -1331,9 +1331,21 @@ class VirtualizedList extends React.PureComponent<Props, State> {
1331
1331
  const preferredScrollerStyleDidChangeHandler =
1332
1332
  this.props.onPreferredScrollerStyleDidChange;
1333
1333
 
1334
+ const isFirstRowSelected = this.state.selectedRowIndex === this.state.first;
1335
+ const isLastRowSelected = this.state.selectedRowIndex === this.state.last;
1336
+
1337
+ // Don't pass in ArrowUp/ArrowDown at the top/bottom of the list so that keyboard event can bubble
1338
+ let _validKeysDown = ['Home', 'End'];
1339
+ if (!isFirstRowSelected) {
1340
+ _validKeysDown.push('ArrowUp');
1341
+ }
1342
+ if (!isLastRowSelected) {
1343
+ _validKeysDown.push('ArrowDown');
1344
+ }
1345
+
1334
1346
  const keyboardNavigationProps = {
1335
1347
  focusable: true,
1336
- validKeysDown: ['ArrowUp', 'ArrowDown', 'Home', 'End'],
1348
+ validKeysDown: _validKeysDown,
1337
1349
  onKeyDown: this._handleKeyDown,
1338
1350
  };
1339
1351
  // ]TODO(macOS GH#774)
@@ -27,7 +27,7 @@ NSDictionary* RCTGetReactNativeVersion(void)
27
27
  __rnVersion = @{
28
28
  RCTVersionMajor: @(0),
29
29
  RCTVersionMinor: @(68),
30
- RCTVersionPatch: @(56),
30
+ RCTVersionPatch: @(58),
31
31
  RCTVersionPrerelease: [NSNull null],
32
32
  };
33
33
  });
@@ -333,21 +333,6 @@
333
333
  #endif // TODO(macOS GH#774)
334
334
 
335
335
  #if TARGET_OS_OSX // [TODO(macOS GH#774)
336
- - (BOOL)canBecomeFirstResponder
337
- {
338
- return YES;
339
- }
340
-
341
- - (BOOL)becomeFirstResponder
342
- {
343
- return YES;
344
- }
345
-
346
- - (BOOL)resignFirstResponder
347
- {
348
- return YES;
349
- }
350
-
351
336
  - (void)setAccessibilityLabel:(NSString *)accessibilityLabel
352
337
  {
353
338
  [super setAccessibilityLabel:accessibilityLabel];
@@ -532,21 +517,6 @@ static inline UIViewAnimationOptions animationOptionsWithCurve(UIViewAnimationCu
532
517
  return _scrollView.documentView;
533
518
  }
534
519
 
535
- - (BOOL)canBecomeFirstResponder
536
- {
537
- return [_scrollView canBecomeFirstResponder];
538
- }
539
-
540
- - (BOOL)becomeFirstResponder
541
- {
542
- return [_scrollView becomeFirstResponder];
543
- }
544
-
545
- - (BOOL)resignFirstResponder
546
- {
547
- return [_scrollView resignFirstResponder];
548
- }
549
-
550
520
  - (void)setAccessibilityLabel:(NSString *)accessibilityLabel
551
521
  {
552
522
  [_scrollView setAccessibilityLabel:accessibilityLabel];
@@ -1,4 +1,4 @@
1
- VERSION_NAME=0.68.56
1
+ VERSION_NAME=0.68.58
2
2
  GROUP=com.facebook.react
3
3
 
4
4
  POM_NAME=ReactNative
@@ -21,6 +21,6 @@ public class ReactNativeVersion {
21
21
  public static final Map<String, Object> VERSION = MapBuilder.<String, Object>of(
22
22
  "major", 0,
23
23
  "minor", 68,
24
- "patch", 56,
24
+ "patch", 58,
25
25
  "prerelease", null);
26
26
  }
@@ -21,7 +21,7 @@ namespace facebook::react {
21
21
  constexpr struct {
22
22
  int32_t Major = 0;
23
23
  int32_t Minor = 68;
24
- int32_t Patch = 56;
24
+ int32_t Patch = 58;
25
25
  std::string_view Prerelease = "";
26
26
  } ReactNativeVersion;
27
27
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-macos",
3
- "version": "0.68.56",
3
+ "version": "0.68.58",
4
4
  "bin": "./cli.js",
5
5
  "description": "React Native for macOS",
6
6
  "license": "MIT",
@@ -56,7 +56,7 @@ GEM
56
56
  colored2 (3.1.2)
57
57
  concurrent-ruby (1.1.10)
58
58
  escape (0.0.4)
59
- ethon (0.15.0)
59
+ ethon (0.16.0)
60
60
  ffi (>= 1.15.0)
61
61
  ffi (1.15.5)
62
62
  fourflusher (2.3.1)
@@ -85,7 +85,7 @@ GEM
85
85
  colored2 (~> 3.1)
86
86
  nanaimo (~> 0.3.0)
87
87
  rexml (~> 3.2.4)
88
- zeitwerk (2.6.1)
88
+ zeitwerk (2.6.6)
89
89
 
90
90
  PLATFORMS
91
91
  ruby
@@ -12,7 +12,7 @@
12
12
  },
13
13
  "dependencies": {
14
14
  "react": "17.0.2",
15
- "react-native-macos": "0.68.56"
15
+ "react-native-macos": "0.68.58"
16
16
  },
17
17
  "devDependencies": {
18
18
  "@babel/core": "^7.12.9",