react-native-macos 0.71.31 → 0.71.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/React/Base/RCTTouchHandler.m +2 -3
- package/React/Base/RCTUIKit.h +2 -1
- package/React/Base/RCTVersion.m +1 -1
- 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
|
@@ -229,11 +229,10 @@ RCT_NOT_IMPLEMENTED(- (instancetype)initWithCoder:(NSCoder *)coder)
|
|
|
229
229
|
NSEvent *nativeTouch = _nativeTouches[touchIndex];
|
|
230
230
|
CGPoint location = nativeTouch.locationInWindow;
|
|
231
231
|
RCTAssert(_cachedRootView, @"We were unable to find a root view for the touch");
|
|
232
|
-
CGPoint rootViewLocation = [_cachedRootView
|
|
232
|
+
CGPoint rootViewLocation = [_cachedRootView convertPoint:location fromView:nil];
|
|
233
|
+
|
|
233
234
|
NSView *touchView = _touchViews[touchIndex];
|
|
234
235
|
CGPoint touchViewLocation = [touchView convertPoint:location fromView:nil];
|
|
235
|
-
// JavaScript expects coordinates to have (0,0) at top left, unlike the macOS coordinate system
|
|
236
|
-
rootViewLocation.y = NSHeight([[_cachedRootView window] frame]) - rootViewLocation.y;
|
|
237
236
|
#endif // macOS]
|
|
238
237
|
|
|
239
238
|
NSMutableDictionary *reactTouch = _reactTouches[touchIndex];
|
package/React/Base/RCTUIKit.h
CHANGED
|
@@ -589,7 +589,8 @@ typedef UIImageView RCTUIImageView;
|
|
|
589
589
|
#else
|
|
590
590
|
@interface RCTUIImageView : NSImageView
|
|
591
591
|
NS_ASSUME_NONNULL_BEGIN
|
|
592
|
-
|
|
592
|
+
// FUTURE: When Xcode 14 is no longer supported (CI is building with Xcode 15), we can remove this override since it's now declared on NSView
|
|
593
|
+
@property (assign) BOOL clipsToBounds;
|
|
593
594
|
@property (nonatomic, strong) RCTUIColor *tintColor;
|
|
594
595
|
@property (nonatomic, assign) UIViewContentMode contentMode;
|
|
595
596
|
NS_ASSUME_NONNULL_END
|
package/React/Base/RCTVersion.m
CHANGED
package/package.json
CHANGED