-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New events for RCTUIView #2136
New events for RCTUIView #2136
Conversation
EDIT: I think no circular dependencies because both RCTUIKit and RCTComponent are in the React-Core module I'm thinking about this more, and feeling like maybe the actual event creation/handling for stuff like |
@property (nonatomic, copy) RCTBubblingEventBlock onResponderGrant; | ||
@property (nonatomic, copy) RCTBubblingEventBlock onResponderMove; | ||
@property (nonatomic, copy) RCTBubblingEventBlock onResponderRelease; | ||
@property (nonatomic, copy) RCTBubblingEventBlock onResponderTerminate; | ||
@property (nonatomic, copy) RCTBubblingEventBlock onResponderTerminationRequest; | ||
@property (nonatomic, copy) RCTBubblingEventBlock onStartShouldSetResponder; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can actually remove these, I think these are actually mostly handled in JS, if nothing is calling this in native code across iOS/macOS
OK, I spoke with @acoates-ms on how this is handled in RNW. He told me it's done at the framework level through I think what makes sense is to move mouse hovering Logic to like a |
I agree that having something like |
@amgleitman we still want this for 0.74, correct? |
This has since been covered by #2149. |
Summary:
Moves mouse event implementations from
RCTView
to superclassRCTUIView
so other React Native views can access them.Test Plan:
Did a quick pass through RNTester, nothing seems broken. This should only affect macOS since everything is within
TARGET_OS_OSX
blocks or macOS-only files.