Skip to content

Commit 596aeec

Browse files
vincentriemerSaadnajmi
authored andcommitted
Fix pointer-events crash in catalyst-ios when running RNTester in legacy mode
Summary: Changelog: [Internal] Fix pointer-events setter crash in Paper Reviewed By: appden Differential Revision: D35617077 fbshipit-source-id: 975840a2474235a027279035ac327e9eb88d3f08
1 parent 7d6f95a commit 596aeec

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

React/Views/RCTView.h

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,16 @@ extern const UIAccessibilityTraits SwitchAccessibilityTrait;
124124
*/
125125
@property (nonatomic, assign) UIEdgeInsets hitTestEdgeInsets;
126126

127+
/**
128+
* (Experimental and unused for Paper) Pointer event handlers.
129+
*/
130+
@property (nonatomic, assign) RCTBubblingEventBlock onPointerCancel;
131+
@property (nonatomic, assign) RCTBubblingEventBlock onPointerDown;
132+
@property (nonatomic, assign) RCTBubblingEventBlock onPointerMove2;
133+
@property (nonatomic, assign) RCTBubblingEventBlock onPointerUp;
134+
@property (nonatomic, assign) RCTCapturingEventBlock onPointerEnter2;
135+
@property (nonatomic, assign) RCTCapturingEventBlock onPointerLeave2;
136+
127137
#if TARGET_OS_OSX // [macOS
128138
/**
129139
* macOS Properties
@@ -151,12 +161,11 @@ extern const UIAccessibilityTraits SwitchAccessibilityTrait;
151161
@property (nonatomic, assign) CGFloat shadowOpacity;
152162
@property (nonatomic, assign) CGFloat shadowRadius;
153163
@property (nonatomic, assign) CGSize shadowOffset;
154-
#endif // macOS]
155164

156165
/**
157166
* Common Focus Properties
158167
*/
159168
@property (nonatomic, copy) RCTBubblingEventBlock onFocus;
160169
@property (nonatomic, copy) RCTBubblingEventBlock onBlur;
161-
170+
#endif // macOS]
162171
@end

0 commit comments

Comments
 (0)