react-native-macos 0.68.56 → 0.68.57

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: 57,
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: @(57),
31
31
  RCTVersionPrerelease: [NSNull null],
32
32
  };
33
33
  });
@@ -1,4 +1,4 @@
1
- VERSION_NAME=0.68.56
1
+ VERSION_NAME=0.68.57
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", 57,
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 = 57;
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.57",
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": "17.0.2",
15
- "react-native-macos": "0.68.56"
15
+ "react-native-macos": "0.68.57"
16
16
  },
17
17
  "devDependencies": {
18
18
  "@babel/core": "^7.12.9",