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.
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/Libraries/Lists/VirtualizedList.js +13 -1
- package/React/Base/RCTVersion.m +1 -1
- package/React/Views/ScrollView/RCTScrollView.m +0 -30
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
- package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
- package/package.json +1 -1
- package/template/Gemfile.lock +2 -2
- package/template/package.json +1 -1
|
@@ -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:
|
|
1348
|
+
validKeysDown: _validKeysDown,
|
|
1337
1349
|
onKeyDown: this._handleKeyDown,
|
|
1338
1350
|
};
|
|
1339
1351
|
// ]TODO(macOS GH#774)
|
package/React/Base/RCTVersion.m
CHANGED
|
@@ -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];
|
package/package.json
CHANGED
package/template/Gemfile.lock
CHANGED
|
@@ -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.
|
|
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.
|
|
88
|
+
zeitwerk (2.6.6)
|
|
89
89
|
|
|
90
90
|
PLATFORMS
|
|
91
91
|
ruby
|