react-native-macos 0.71.17 → 0.71.18
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/Image/RCTImageView.mm +1 -28
- 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
|
@@ -131,11 +131,6 @@ static NSDictionary *onLoadParamsForSource(RCTImageSource *source)
|
|
|
131
131
|
|
|
132
132
|
RCTUIImageViewAnimated *_imageView;
|
|
133
133
|
|
|
134
|
-
#if TARGET_OS_OSX // [macOS
|
|
135
|
-
// Whether observing changes to the window's backing scale
|
|
136
|
-
BOOL _subscribedToWindowBackingNotifications;
|
|
137
|
-
#endif // macOS]
|
|
138
|
-
|
|
139
134
|
RCTImageURLLoaderRequest *_loaderRequest;
|
|
140
135
|
}
|
|
141
136
|
|
|
@@ -616,32 +611,10 @@ RCT_NOT_IMPLEMENTED(-(instancetype)initWithFrame : (CGRect)frame)
|
|
|
616
611
|
#if TARGET_OS_OSX // [macOS
|
|
617
612
|
#define didMoveToWindow viewDidMoveToWindow
|
|
618
613
|
#endif
|
|
619
|
-
#if TARGET_OS_OSX
|
|
620
|
-
- (void)viewWillMoveToWindow:(NSWindow *)newWindow
|
|
621
|
-
{
|
|
622
|
-
if (_subscribedToWindowBackingNotifications &&
|
|
623
|
-
self.window != nil &&
|
|
624
|
-
self.window != newWindow) {
|
|
625
|
-
[[NSNotificationCenter defaultCenter] removeObserver:self
|
|
626
|
-
name:NSWindowDidChangeBackingPropertiesNotification
|
|
627
|
-
object:self.window];
|
|
628
|
-
_subscribedToWindowBackingNotifications = NO;
|
|
629
|
-
}
|
|
630
|
-
}
|
|
631
|
-
#endif // macOS]
|
|
632
614
|
- (void)didMoveToWindow
|
|
633
615
|
{
|
|
634
616
|
[super didMoveToWindow];
|
|
635
617
|
|
|
636
|
-
#if TARGET_OS_OSX // [macOS
|
|
637
|
-
if (!_subscribedToWindowBackingNotifications && self.window != nil) {
|
|
638
|
-
[[NSNotificationCenter defaultCenter] addObserver:self
|
|
639
|
-
selector:@selector(windowDidChangeBackingProperties:)
|
|
640
|
-
name:NSWindowDidChangeBackingPropertiesNotification
|
|
641
|
-
object:self.window];
|
|
642
|
-
_subscribedToWindowBackingNotifications = YES;
|
|
643
|
-
}
|
|
644
|
-
#endif // macOS]
|
|
645
618
|
if (!self.window) {
|
|
646
619
|
// Cancel loading the image if we've moved offscreen. In addition to helping
|
|
647
620
|
// prioritise image requests that are actually on-screen, this removes
|
|
@@ -655,7 +628,7 @@ RCT_NOT_IMPLEMENTED(-(instancetype)initWithFrame : (CGRect)frame)
|
|
|
655
628
|
}
|
|
656
629
|
|
|
657
630
|
#if TARGET_OS_OSX // [macOS
|
|
658
|
-
- (void)
|
|
631
|
+
- (void)viewDidChangeBackingProperties
|
|
659
632
|
{
|
|
660
633
|
[self reloadImage];
|
|
661
634
|
}
|
package/React/Base/RCTVersion.m
CHANGED
package/package.json
CHANGED