react-native-macos 0.68.26 → 0.68.29
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/FlatList.js +1 -0
- package/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputView.m +3 -1
- package/React/Base/RCTConvert.m +1 -0
- package/React/Base/RCTVersion.m +1 -1
- package/React/Views/RCTViewManager.m +1 -0
- package/React/Views/ScrollView/RCTScrollContentView.m +12 -0
- package/React/Views/ScrollView/RCTScrollView.m +5 -0
- 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 +4 -4
- package/template/package.json +1 -1
|
@@ -664,6 +664,7 @@ class FlatList<ItemT> extends React.PureComponent<Props<ItemT>, void> {
|
|
|
664
664
|
removeClippedSubviews={removeClippedSubviewsOrDefault(
|
|
665
665
|
_removeClippedSubviews,
|
|
666
666
|
)}
|
|
667
|
+
accessibilityRole="table" // TODO(macOS GH#774): Inherit NSAccessibilityTable protocols
|
|
667
668
|
{...this._renderer()}
|
|
668
669
|
/>
|
|
669
670
|
);
|
|
@@ -106,7 +106,9 @@
|
|
|
106
106
|
- (void)scrollViewDidScroll:(RCTUIScrollView *)scrollView // TODO(macOS ISS#3536887)
|
|
107
107
|
{
|
|
108
108
|
RCTDirectEventBlock onScroll = self.onScroll;
|
|
109
|
-
|
|
109
|
+
#if TARGET_OS_OSX // [TODO(macOS GH#774)
|
|
110
|
+
[_scrollView setHasVerticalScroller:YES];
|
|
111
|
+
#endif // ]TODO(macOS GH#774)
|
|
110
112
|
if (onScroll) {
|
|
111
113
|
CGPoint contentOffset = scrollView.contentOffset;
|
|
112
114
|
CGSize contentSize = scrollView.contentSize;
|
package/React/Base/RCTConvert.m
CHANGED
package/React/Base/RCTVersion.m
CHANGED
|
@@ -51,6 +51,7 @@ RCT_MULTI_ENUM_CONVERTER(
|
|
|
51
51
|
// a set of RN accessibilityTraits are macOS specific accessiblity roles and map to nothing on iOS:
|
|
52
52
|
@"disclosure" : @(UIAccessibilityTraitNone),
|
|
53
53
|
@"group" : @(UIAccessibilityTraitNone),
|
|
54
|
+
@"table": @(UIAccessibilityTraitNone),
|
|
54
55
|
// ]TODO(macOS GH#774)
|
|
55
56
|
@"alert" : @(UIAccessibilityTraitNone),
|
|
56
57
|
@"checkbox" : @(UIAccessibilityTraitNone),
|
|
@@ -54,6 +54,18 @@
|
|
|
54
54
|
horizontalScrollerHeight:verticalScrollerWidth];
|
|
55
55
|
[[[scrollView bridge] uiManager] setLocalData:localData forView:self];
|
|
56
56
|
}
|
|
57
|
+
|
|
58
|
+
if ([platformScrollView accessibilityRole] == NSAccessibilityTableRole) {
|
|
59
|
+
NSMutableArray *subViews = [[NSMutableArray alloc] initWithCapacity:[[self subviews] count]];
|
|
60
|
+
for (NSView *view in [self subviews]) {
|
|
61
|
+
if ([view isKindOfClass:[RCTView class]]) {
|
|
62
|
+
[subViews addObject:view];
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
[platformScrollView setAccessibilityRows:subViews];
|
|
67
|
+
}
|
|
68
|
+
|
|
57
69
|
#endif // ]TODO(macOS GH#774)
|
|
58
70
|
}
|
|
59
71
|
|
|
@@ -549,6 +549,11 @@ static inline UIViewAnimationOptions animationOptionsWithCurve(UIViewAnimationCu
|
|
|
549
549
|
{
|
|
550
550
|
[_scrollView setAccessibilityLabel:accessibilityLabel];
|
|
551
551
|
}
|
|
552
|
+
|
|
553
|
+
- (void)setAccessibilityRole:(NSAccessibilityRole)accessibilityRole
|
|
554
|
+
{
|
|
555
|
+
[_scrollView setAccessibilityRole:accessibilityRole];
|
|
556
|
+
}
|
|
552
557
|
#endif // ]TODO(macOS GH#774)
|
|
553
558
|
|
|
554
559
|
RCT_NOT_IMPLEMENTED(-(instancetype)initWithFrame : (CGRect)frame)
|
package/package.json
CHANGED
package/template/Gemfile.lock
CHANGED
|
@@ -9,8 +9,8 @@ GEM
|
|
|
9
9
|
minitest (>= 5.1)
|
|
10
10
|
tzinfo (~> 2.0)
|
|
11
11
|
zeitwerk (~> 2.3)
|
|
12
|
-
addressable (2.8.
|
|
13
|
-
public_suffix (>= 2.0.2, <
|
|
12
|
+
addressable (2.8.1)
|
|
13
|
+
public_suffix (>= 2.0.2, < 6.0)
|
|
14
14
|
algoliasearch (1.27.5)
|
|
15
15
|
httpclient (~> 2.8, >= 2.8.3)
|
|
16
16
|
json (>= 1.5.1)
|
|
@@ -66,7 +66,7 @@ GEM
|
|
|
66
66
|
i18n (1.12.0)
|
|
67
67
|
concurrent-ruby (~> 1.0)
|
|
68
68
|
json (2.6.2)
|
|
69
|
-
minitest (5.16.
|
|
69
|
+
minitest (5.16.3)
|
|
70
70
|
molinillo (0.8.0)
|
|
71
71
|
nanaimo (0.3.0)
|
|
72
72
|
nap (1.1.0)
|
|
@@ -97,4 +97,4 @@ RUBY VERSION
|
|
|
97
97
|
ruby 3.0.4p208
|
|
98
98
|
|
|
99
99
|
BUNDLED WITH
|
|
100
|
-
2.3.
|
|
100
|
+
2.3.20
|