-
-
Notifications
You must be signed in to change notification settings - Fork 980
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
Fix scroll view handler state change events #2985
Conversation
apple/RNGestureHandler.mm
Outdated
return NO; | ||
} | ||
|
||
- (UIScrollView *)retrieveScrollView:(UIView *)view |
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 believe this line breaks macOS compilation. You should be able to replace UIView
with RNGHUIView
.
You will also need to do something about UIScrollView
which will not exist on macOS. You should be able to use the TARGET_OS_OSX
flag and conditionally replace it with NSScrollView
.
Co-authored-by: Jakub Piasecki <jakub.piasecki@swmansion.com>
Co-authored-by: Jakub Piasecki <jakub.piasecki@swmansion.com>
## Description In #2985 some changes were made regarding handling of ScrollViews by the native handler. I have no idea how the build passed on the PR itself but a type only available on iOS was used which causes macOS not to build. This PR cleans it up. ## Test plan Build macOS example
Description
Regarding this issue, this PR fixes the events that are sent from iOS whenever the state change occurs in a RCTScrollView.
Test plan
Tested on simulator and real device.