react-native-macos 0.0.0-9afecd51b → 0.0.0-9d00daa66
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/Components/AccessibilityInfo/AccessibilityInfo.js +22 -12
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/Libraries/Text/RawText/RCTRawTextShadowView.m +2 -0
- package/Libraries/Text/Text/RCTTextView.m +7 -9
- package/Libraries/Text/TextInput/Multiline/RCTUITextView.m +10 -8
- package/Libraries/Text/TextInput/RCTBackedTextInputDelegate.h +2 -0
- package/Libraries/Text/TextInput/RCTBackedTextInputDelegateAdapter.m +15 -3
- package/Libraries/Text/TextInput/RCTBaseTextInputView.m +10 -1
- package/README.md +4 -3
- package/React/Base/RCTConvert.m +1 -1
- package/React/Base/RCTImageSource.m +2 -0
- package/React/Base/RCTJSStackFrame.m +2 -0
- package/React/Base/RCTJavaScriptLoader.mm +2 -0
- package/React/Base/RCTKeyCommands.m +2 -0
- package/React/Base/RCTModuleData.mm +2 -0
- package/React/Base/RCTModuleMethod.mm +2 -0
- package/React/Base/RCTTouchEvent.m +2 -0
- package/React/Base/RCTVersion.m +1 -1
- package/React/Base/macOS/RCTPlatformDisplayLink.m +4 -1
- package/React/CoreModules/RCTActionSheetManager.mm +4 -0
- package/React/CxxModule/RCTCxxMethod.mm +2 -0
- package/React/DevSupport/RCTInspectorDevServerHelper.mm +12 -0
- package/React/Modules/RCTLayoutAnimation.m +2 -0
- package/React/Modules/RCTLayoutAnimationGroup.m +2 -0
- package/React/Views/RCTShadowView.m +3 -1
- package/React/Views/RCTView.h +3 -0
- package/React/Views/RCTView.m +20 -8
- package/React/Views/RCTViewManager.m +9 -8
- package/React/Views/SafeAreaView/RCTSafeAreaView.m +2 -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/ReactCommon/hermes/inspector/tools/msggen/package.json +1 -1
- package/ReactCommon/hermes/inspector/tools/msggen/yarn.lock +1225 -1481
- package/package.json +19 -11
- package/template/package.json +2 -2
|
@@ -215,15 +215,16 @@ RCT_CUSTOM_VIEW_PROPERTY(shouldRasterizeIOS, BOOL, RCTView)
|
|
|
215
215
|
|
|
216
216
|
RCT_CUSTOM_VIEW_PROPERTY(transform, CATransform3D, RCTView)
|
|
217
217
|
{
|
|
218
|
-
#if
|
|
218
|
+
#if TARGET_OS_OSX // [TODO(macOS GH#460)
|
|
219
|
+
CATransform3D transform = json ? [RCTConvert CATransform3D:json] : defaultView.layer.transform;
|
|
220
|
+
[view setTransform3D:transform];
|
|
221
|
+
[view setNeedsDisplay];
|
|
222
|
+
#else // ]TODO(macOS GH#460)]
|
|
219
223
|
view.layer.transform = json ? [RCTConvert CATransform3D:json] : defaultView.layer.transform;
|
|
220
|
-
// Enable edge antialiasing in perspective transforms
|
|
221
|
-
view.layer.allowsEdgeAntialiasing =
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
// TODO: Improve this by enabling edge antialiasing only for transforms with rotation or skewing
|
|
225
|
-
view.layer.edgeAntialiasingMask = !CATransform3DIsIdentity(view.layer.sublayerTransform) ? kCALayerLeftEdge | kCALayerRightEdge | kCALayerBottomEdge | kCALayerTopEdge : 0;
|
|
226
|
-
#endif // ]TODO(macOS GH#774)
|
|
224
|
+
// Enable edge antialiasing in rotation, skew, or perspective transforms
|
|
225
|
+
view.layer.allowsEdgeAntialiasing =
|
|
226
|
+
view.layer.transform.m12 != 0.0f || view.layer.transform.m21 != 0.0f || view.layer.transform.m34 != 0.0f;
|
|
227
|
+
#endif // [TODO(macOS GH#460)]
|
|
227
228
|
}
|
|
228
229
|
|
|
229
230
|
RCT_CUSTOM_VIEW_PROPERTY(accessibilityRole, UIAccessibilityTraits, RCTView)
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
RCT_NOT_IMPLEMENTED(-(instancetype)initWithCoder : (NSCoder *)decoder)
|
|
31
31
|
RCT_NOT_IMPLEMENTED(-(instancetype)initWithFrame : (CGRect)frame)
|
|
32
32
|
|
|
33
|
+
#if DEBUG // TODO(macOS GH#774) description is a debug-only feature
|
|
33
34
|
- (NSString *)description
|
|
34
35
|
{
|
|
35
36
|
NSString *superDescription = [super description];
|
|
@@ -44,6 +45,7 @@ RCT_NOT_IMPLEMENTED(-(instancetype)initWithFrame : (CGRect)frame)
|
|
|
44
45
|
NSStringFromUIEdgeInsets([self safeAreaInsetsIfSupportedAndEnabled]),
|
|
45
46
|
NSStringFromUIEdgeInsets(_currentSafeAreaInsets)];
|
|
46
47
|
}
|
|
48
|
+
#endif // TODO(macOS GH#774)
|
|
47
49
|
|
|
48
50
|
- (BOOL)isSupportedByOS
|
|
49
51
|
{
|