react-native-macos 0.72.5 → 0.72.7
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/RCTVersion.m +1 -1
- package/React/CxxBridge/JSCExecutorFactory.h +4 -0
- package/React/Views/RCTView.m +14 -9
- 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
package/React/Base/RCTVersion.m
CHANGED
|
@@ -31,7 +31,11 @@ class JSCExecutorFactory : public JSExecutorFactory {
|
|
|
31
31
|
JSIExecutor::RuntimeInstaller runtimeInstaller_;
|
|
32
32
|
|
|
33
33
|
// [macOS
|
|
34
|
+
#if DEBUG
|
|
34
35
|
bool enableDebugger_ = true;
|
|
36
|
+
#else
|
|
37
|
+
bool enableDebugger_ = false;
|
|
38
|
+
#endif
|
|
35
39
|
std::string debuggerName_ = "JSC React Native";
|
|
36
40
|
// macOS]
|
|
37
41
|
};
|
package/React/Views/RCTView.m
CHANGED
|
@@ -1491,16 +1491,21 @@ setBorderColor() setBorderColor(Top) setBorderColor(Right) setBorderColor(Bottom
|
|
|
1491
1491
|
|
|
1492
1492
|
- (void)updateTrackingAreas
|
|
1493
1493
|
{
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1494
|
+
BOOL hasMouseHoverEvent = self.onMouseEnter || self.onMouseLeave;
|
|
1495
|
+
BOOL wouldRecreateIdenticalTrackingArea = hasMouseHoverEvent && _trackingArea && NSEqualRects(self.bounds, [_trackingArea rect]);
|
|
1496
|
+
|
|
1497
|
+
if (!wouldRecreateIdenticalTrackingArea) {
|
|
1498
|
+
if (_trackingArea) {
|
|
1499
|
+
[self removeTrackingArea:_trackingArea];
|
|
1500
|
+
}
|
|
1497
1501
|
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1502
|
+
if (hasMouseHoverEvent) {
|
|
1503
|
+
_trackingArea = [[NSTrackingArea alloc] initWithRect:self.bounds
|
|
1504
|
+
options:NSTrackingActiveAlways|NSTrackingMouseEnteredAndExited
|
|
1505
|
+
owner:self
|
|
1506
|
+
userInfo:nil];
|
|
1507
|
+
[self addTrackingArea:_trackingArea];
|
|
1508
|
+
}
|
|
1504
1509
|
}
|
|
1505
1510
|
|
|
1506
1511
|
[super updateTrackingAreas];
|
package/package.json
CHANGED