react-native-macos 0.68.32 → 0.68.35
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/fabric/jni/Android.mk +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/jni/Android.mk +1 -1
- package/ReactAndroid/src/main/jni/react/jni/Android.mk +0 -60
- package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
- package/ReactCommon/react/renderer/components/progressbar/Android.mk +1 -1
- package/ReactCommon/react/renderer/components/slider/Android.mk +1 -1
- package/ReactCommon/react/renderer/components/switch/Android.mk +1 -1
- package/ReactCommon/react/renderer/textlayoutmanager/Android.mk +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
|
{
|
|
@@ -19,7 +19,7 @@ LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)
|
|
|
19
19
|
|
|
20
20
|
LOCAL_CFLAGS += -fexceptions -frtti -std=c++17 -Wall
|
|
21
21
|
|
|
22
|
-
LOCAL_SHARED_LIBRARIES = libfb libfbjni
|
|
22
|
+
LOCAL_SHARED_LIBRARIES = libfb libfbjni libreactnativejni libruntimeexecutor
|
|
23
23
|
|
|
24
24
|
LOCAL_STATIC_LIBRARIES = libcallinvoker libreactperfloggerjni
|
|
25
25
|
|
|
@@ -3,67 +3,8 @@
|
|
|
3
3
|
# This source code is licensed under the MIT license found in the
|
|
4
4
|
# LICENSE file in the root directory of this source tree.
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
##########################
|
|
8
|
-
### React Native Utils ###
|
|
9
|
-
##########################
|
|
10
|
-
|
|
11
6
|
LOCAL_PATH := $(call my-dir)
|
|
12
7
|
|
|
13
|
-
include $(CLEAR_VARS)
|
|
14
|
-
|
|
15
|
-
# Include . in the header search path for all source files in this module.
|
|
16
|
-
LOCAL_C_INCLUDES := $(LOCAL_PATH)
|
|
17
|
-
|
|
18
|
-
# Include ./../../ in the header search path for modules that depend on
|
|
19
|
-
# reactnativejni. This will allow external modules to require this module's
|
|
20
|
-
# headers using #include <react/jni/<header>.h>, assuming:
|
|
21
|
-
# . == jni
|
|
22
|
-
# ./../ == react
|
|
23
|
-
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../..
|
|
24
|
-
|
|
25
|
-
LOCAL_CFLAGS += -fexceptions -frtti -Wno-unused-lambda-capture
|
|
26
|
-
|
|
27
|
-
LOCAL_LDLIBS += -landroid
|
|
28
|
-
|
|
29
|
-
# The dynamic libraries (.so files) that this module depends on.
|
|
30
|
-
LOCAL_SHARED_LIBRARIES := \
|
|
31
|
-
libfb \
|
|
32
|
-
libfbjni \
|
|
33
|
-
libfolly_json \
|
|
34
|
-
libglog_init \
|
|
35
|
-
libreact_render_runtimescheduler \
|
|
36
|
-
libruntimeexecutor \
|
|
37
|
-
libyoga
|
|
38
|
-
|
|
39
|
-
# The static libraries (.a files) that this module depends on.
|
|
40
|
-
LOCAL_STATIC_LIBRARIES := libreactnative libcallinvokerholder
|
|
41
|
-
|
|
42
|
-
# Name of this module.
|
|
43
|
-
#
|
|
44
|
-
# Other modules can depend on this one by adding libreactnativejni to their
|
|
45
|
-
# LOCAL_SHARED_LIBRARIES variable.
|
|
46
|
-
LOCAL_MODULE := reactnativeutilsjni
|
|
47
|
-
|
|
48
|
-
# Compile all local c++ files.
|
|
49
|
-
LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp)
|
|
50
|
-
LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES))
|
|
51
|
-
|
|
52
|
-
ifeq ($(APP_OPTIM),debug)
|
|
53
|
-
# Keep symbols by overriding the strip command invoked by ndk-build.
|
|
54
|
-
# Note that this will apply to all shared libraries,
|
|
55
|
-
# i.e. shared libraries will NOT be stripped
|
|
56
|
-
# even though we override it in this Android.mk
|
|
57
|
-
cmd-strip :=
|
|
58
|
-
endif
|
|
59
|
-
|
|
60
|
-
# Build the files in this directory as a shared library
|
|
61
|
-
include $(BUILD_SHARED_LIBRARY)
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
8
|
######################
|
|
68
9
|
### reactnativejni ###
|
|
69
10
|
######################
|
|
@@ -91,7 +32,6 @@ LOCAL_SHARED_LIBRARIES := \
|
|
|
91
32
|
libfolly_json \
|
|
92
33
|
libglog_init \
|
|
93
34
|
libreact_render_runtimescheduler \
|
|
94
|
-
libreactnativeutilsjni \
|
|
95
35
|
libruntimeexecutor \
|
|
96
36
|
libyoga \
|
|
97
37
|
logger
|
package/package.json
CHANGED