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.
Files changed (36) hide show
  1. package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js +22 -12
  2. package/Libraries/Core/ReactNativeVersion.js +1 -1
  3. package/Libraries/Text/RawText/RCTRawTextShadowView.m +2 -0
  4. package/Libraries/Text/Text/RCTTextView.m +7 -9
  5. package/Libraries/Text/TextInput/Multiline/RCTUITextView.m +10 -8
  6. package/Libraries/Text/TextInput/RCTBackedTextInputDelegate.h +2 -0
  7. package/Libraries/Text/TextInput/RCTBackedTextInputDelegateAdapter.m +15 -3
  8. package/Libraries/Text/TextInput/RCTBaseTextInputView.m +10 -1
  9. package/README.md +4 -3
  10. package/React/Base/RCTConvert.m +1 -1
  11. package/React/Base/RCTImageSource.m +2 -0
  12. package/React/Base/RCTJSStackFrame.m +2 -0
  13. package/React/Base/RCTJavaScriptLoader.mm +2 -0
  14. package/React/Base/RCTKeyCommands.m +2 -0
  15. package/React/Base/RCTModuleData.mm +2 -0
  16. package/React/Base/RCTModuleMethod.mm +2 -0
  17. package/React/Base/RCTTouchEvent.m +2 -0
  18. package/React/Base/RCTVersion.m +1 -1
  19. package/React/Base/macOS/RCTPlatformDisplayLink.m +4 -1
  20. package/React/CoreModules/RCTActionSheetManager.mm +4 -0
  21. package/React/CxxModule/RCTCxxMethod.mm +2 -0
  22. package/React/DevSupport/RCTInspectorDevServerHelper.mm +12 -0
  23. package/React/Modules/RCTLayoutAnimation.m +2 -0
  24. package/React/Modules/RCTLayoutAnimationGroup.m +2 -0
  25. package/React/Views/RCTShadowView.m +3 -1
  26. package/React/Views/RCTView.h +3 -0
  27. package/React/Views/RCTView.m +20 -8
  28. package/React/Views/RCTViewManager.m +9 -8
  29. package/React/Views/SafeAreaView/RCTSafeAreaView.m +2 -0
  30. package/ReactAndroid/gradle.properties +1 -1
  31. package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
  32. package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
  33. package/ReactCommon/hermes/inspector/tools/msggen/package.json +1 -1
  34. package/ReactCommon/hermes/inspector/tools/msggen/yarn.lock +1225 -1481
  35. package/package.json +19 -11
  36. 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 !TARGET_OS_OSX // TODO(macOS GH#774)
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 = !(view.layer.transform.m34 == 0.0f);
222
- #elif TARGET_OS_OSX // [TODO(macOS GH#774)
223
- view.layer.sublayerTransform = json ? [RCTConvert CATransform3D:json] : defaultView.layer.sublayerTransform;
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
  {
@@ -1,4 +1,4 @@
1
- VERSION_NAME=0.0.0-9afecd51b
1
+ VERSION_NAME=0.0.0-9d00daa66
2
2
  GROUP=com.facebook.react
3
3
 
4
4
  POM_NAME=ReactNative
@@ -22,5 +22,5 @@ public class ReactNativeVersion {
22
22
  "major", 0,
23
23
  "minor", 0,
24
24
  "patch", 0,
25
- "prerelease", "9afecd51b");
25
+ "prerelease", "9d00daa66");
26
26
  }
@@ -22,7 +22,7 @@ constexpr struct {
22
22
  int32_t Major = 0;
23
23
  int32_t Minor = 0;
24
24
  int32_t Patch = 0;
25
- std::string_view Prerelease = "9afecd51b";
25
+ std::string_view Prerelease = "9d00daa66";
26
26
  } ReactNativeVersion;
27
27
 
28
28
  } // namespace facebook::react
@@ -33,7 +33,7 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "devtools-protocol": "0.0.730699",
36
- "yargs": "^14.2.0"
36
+ "yargs": "^15.3.0"
37
37
  },
38
38
  "beachball": {
39
39
  "shouldPublish": false