react-native-macos 0.68.32 → 0.68.33
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 +0 -1
- package/React/Base/RCTVersion.m +1 -1
- package/React/Views/RCTView.h +0 -6
- package/React/Views/RCTView.m +11 -41
- package/React/Views/RCTViewManager.m +0 -9
- 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/package.json +1 -1
|
@@ -688,7 +688,6 @@ class FlatList<ItemT> extends React.PureComponent<Props<ItemT>, void> {
|
|
|
688
688
|
removeClippedSubviews={removeClippedSubviewsOrDefault(
|
|
689
689
|
_removeClippedSubviews,
|
|
690
690
|
)}
|
|
691
|
-
accessibilityRole="table" // TODO(macOS GH#774): Inherit NSAccessibilityTable protocols
|
|
692
691
|
{...this._renderer()}
|
|
693
692
|
/>
|
|
694
693
|
);
|
package/React/Base/RCTVersion.m
CHANGED
package/React/Views/RCTView.h
CHANGED
|
@@ -139,12 +139,6 @@ extern const UIAccessibilityTraits SwitchAccessibilityTrait;
|
|
|
139
139
|
@property (nonatomic, copy) RCTDirectEventBlock onKeyUp;
|
|
140
140
|
@property (nonatomic, copy) NSArray<NSString*> *validKeysDown;
|
|
141
141
|
@property (nonatomic, copy) NSArray<NSString*> *validKeysUp;
|
|
142
|
-
|
|
143
|
-
// Shadow Properties
|
|
144
|
-
@property (nonatomic, strong) NSColor *shadowColor;
|
|
145
|
-
@property (nonatomic, assign) CGFloat shadowOpacity;
|
|
146
|
-
@property (nonatomic, assign) CGFloat shadowRadius;
|
|
147
|
-
@property (nonatomic, assign) CGSize shadowOffset;
|
|
148
142
|
#endif // ]TODO(macOS GH#774)
|
|
149
143
|
|
|
150
144
|
/**
|
package/React/Views/RCTView.m
CHANGED
|
@@ -165,7 +165,6 @@ static NSString *RCTRecursiveAccessibilityLabel(RCTUIView *view) // TODO(macOS I
|
|
|
165
165
|
_hitTestEdgeInsets = UIEdgeInsetsZero;
|
|
166
166
|
#if TARGET_OS_OSX // TODO(macOS GH#774)
|
|
167
167
|
_transform3D = CATransform3DIdentity;
|
|
168
|
-
_shadowColor = nil;
|
|
169
168
|
#endif // TODO(macOS GH#774)
|
|
170
169
|
|
|
171
170
|
_backgroundColor = super.backgroundColor;
|
|
@@ -717,49 +716,20 @@ RCT_NOT_IMPLEMENTED(-(instancetype)initWithCoder : unused)
|
|
|
717
716
|
#endif // TODO(macOS GH#774)
|
|
718
717
|
|
|
719
718
|
#if TARGET_OS_OSX // [TODO(macOS GH#774)
|
|
720
|
-
|
|
719
|
+
// Workaround AppKit issue with directly manipulating the view layer's shadow.
|
|
720
|
+
- (NSShadow*)shadow
|
|
721
721
|
{
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
_shadowColor = shadowColor;
|
|
725
|
-
[self didUpdateShadow];
|
|
726
|
-
}
|
|
727
|
-
}
|
|
722
|
+
CALayer *layer = self.layer;
|
|
723
|
+
NSShadow *shadow = nil;
|
|
728
724
|
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
if (!CGSizeEqualToSize(_shadowOffset, shadowOffset))
|
|
732
|
-
{
|
|
733
|
-
_shadowOffset = shadowOffset;
|
|
734
|
-
[self didUpdateShadow];
|
|
735
|
-
}
|
|
736
|
-
}
|
|
725
|
+
if (layer.shadowColor != nil && layer.shadowOpacity > 0) {
|
|
726
|
+
shadow = [NSShadow new];
|
|
737
727
|
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
[self didUpdateShadow];
|
|
744
|
-
}
|
|
745
|
-
}
|
|
746
|
-
|
|
747
|
-
- (void)setShadowRadius:(CGFloat)shadowRadius
|
|
748
|
-
{
|
|
749
|
-
if (_shadowRadius != shadowRadius)
|
|
750
|
-
{
|
|
751
|
-
_shadowRadius = shadowRadius;
|
|
752
|
-
[self didUpdateShadow];
|
|
753
|
-
}
|
|
754
|
-
}
|
|
755
|
-
|
|
756
|
-
-(void)didUpdateShadow
|
|
757
|
-
{
|
|
758
|
-
NSShadow *shadow = [NSShadow new];
|
|
759
|
-
shadow.shadowColor = [[self shadowColor] colorWithAlphaComponent:[self shadowOpacity]];
|
|
760
|
-
shadow.shadowOffset = [self shadowOffset];
|
|
761
|
-
shadow.shadowBlurRadius = [self shadowRadius];
|
|
762
|
-
[self setShadow:shadow];
|
|
728
|
+
shadow.shadowColor = [[NSColor colorWithCGColor:layer.shadowColor] colorWithAlphaComponent:layer.shadowOpacity];
|
|
729
|
+
shadow.shadowOffset = layer.shadowOffset;
|
|
730
|
+
shadow.shadowBlurRadius = layer.shadowRadius;
|
|
731
|
+
}
|
|
732
|
+
return shadow;
|
|
763
733
|
}
|
|
764
734
|
|
|
765
735
|
- (void)viewDidMoveToWindow
|
|
@@ -192,19 +192,10 @@ RCT_REMAP_VIEW_PROPERTY(opacity, alpha, CGFloat)
|
|
|
192
192
|
#else // [TODO(macOS GH#774)
|
|
193
193
|
RCT_REMAP_VIEW_PROPERTY(opacity, alphaValue, CGFloat)
|
|
194
194
|
#endif // ]TODO(macOS GH#774)
|
|
195
|
-
|
|
196
|
-
#if TARGET_OS_OSX // TODO(macOS GH#774)
|
|
197
195
|
RCT_REMAP_VIEW_PROPERTY(shadowColor, layer.shadowColor, CGColor)
|
|
198
196
|
RCT_REMAP_VIEW_PROPERTY(shadowOffset, layer.shadowOffset, CGSize)
|
|
199
197
|
RCT_REMAP_VIEW_PROPERTY(shadowOpacity, layer.shadowOpacity, float)
|
|
200
198
|
RCT_REMAP_VIEW_PROPERTY(shadowRadius, layer.shadowRadius, CGFloat)
|
|
201
|
-
#else // [TODO(macOS GH#774)
|
|
202
|
-
RCT_EXPORT_VIEW_PROPERTY(shadowColor, NSColor)
|
|
203
|
-
RCT_EXPORT_VIEW_PROPERTY(shadowOffset, CGSize)
|
|
204
|
-
RCT_EXPORT_VIEW_PROPERTY(shadowOpacity, CGFloat)
|
|
205
|
-
RCT_EXPORT_VIEW_PROPERTY(shadowRadius, CGFloat)
|
|
206
|
-
#endif // ]TODO(macOS GH#774)
|
|
207
|
-
|
|
208
199
|
RCT_REMAP_VIEW_PROPERTY(needsOffscreenAlphaCompositing, layer.allowsGroupOpacity, BOOL)
|
|
209
200
|
RCT_CUSTOM_VIEW_PROPERTY(overflow, YGOverflow, RCTView)
|
|
210
201
|
{
|
package/package.json
CHANGED