react-native-macos 0.63.39 → 0.63.43

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.
@@ -165,6 +165,8 @@ function Pressable(props: Props, forwardedRef): React.Node {
165
165
  delayLongPress,
166
166
  disabled,
167
167
  focusable,
168
+ onMouseEnter, // [TODO(macOS GH#774)
169
+ onMouseLeave, // ]TODO(macOS GH#774)
168
170
  onLongPress,
169
171
  onPress,
170
172
  onPressIn,
@@ -191,6 +193,8 @@ function Pressable(props: Props, forwardedRef): React.Node {
191
193
  pressRectOffset: pressRetentionOffset,
192
194
  android_disableSound,
193
195
  delayLongPress,
196
+ onHoverIn: onMouseEnter, // [TODO(macOS GH#774)
197
+ onHoverOut: onMouseLeave, // ]TODO(macOS GH#774)
194
198
  onLongPress,
195
199
  onPress,
196
200
  onPressIn(event: PressEvent): void {
@@ -219,6 +223,8 @@ function Pressable(props: Props, forwardedRef): React.Node {
219
223
  delayLongPress,
220
224
  disabled,
221
225
  hitSlop,
226
+ onMouseEnter, // [TODO(macOS GH#774)
227
+ onMouseLeave, // ]TODO(macOS GH#774)
222
228
  onLongPress,
223
229
  onPress,
224
230
  onPressIn,
@@ -96,6 +96,15 @@
96
96
 
97
97
  - (void)invalidate
98
98
  {
99
+ // [TODO: GH#858
100
+ // ensure observer callbacks do not hold a reference to weak self via pauseCallback
101
+ for (RCTModuleData *moduleData in _frameUpdateObservers) {
102
+ id<RCTFrameUpdateObserver> observer = (id<RCTFrameUpdateObserver>)moduleData.instance;
103
+ [observer setPauseCallback:nil];
104
+ }
105
+ [_frameUpdateObservers removeAllObjects]; // just to be explicit
106
+ // TODO: GH#858]
107
+
99
108
  [_jsDisplayLink invalidate];
100
109
  }
101
110
 
@@ -146,9 +155,7 @@
146
155
  BOOL pauseDisplayLink = YES;
147
156
  for (RCTModuleData *moduleData in _frameUpdateObservers) {
148
157
  id<RCTFrameUpdateObserver> observer = (id<RCTFrameUpdateObserver>)moduleData.instance;
149
- BOOL validObserverProtocol = [observer conformsToProtocol:@protocol(RCTFrameUpdateObserver)]; // [TODO: GH#774- add protocol check before accessing data
150
- RCTAssert(validObserverProtocol, @"Observer does not conform to necessary protocol (RCTFrameUpdateObserver)");
151
- if (validObserverProtocol && !observer.paused) { // TODO: GH#774- add protocol check before accessing data]
158
+ if (!observer.paused) {
152
159
  pauseDisplayLink = NO;
153
160
  break;
154
161
  }
@@ -65,6 +65,7 @@ static CVReturn RCTPlatformDisplayLinkCallBack(__unused CVDisplayLinkRef display
65
65
  if (_displayLink != NULL) {
66
66
  CVDisplayLinkStop(_displayLink);
67
67
  CVDisplayLinkRelease(_displayLink);
68
+ _displayLink = NULL;
68
69
  }
69
70
  }
70
71
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-macos",
3
- "version": "0.63.39",
3
+ "version": "0.63.43",
4
4
  "bin": "./cli.js",
5
5
  "description": "[Microsoft Fork] A framework for building native apps using React",
6
6
  "license": "MIT",