Skip to content
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 failing macOS build #3033

Merged
merged 1 commit into from
Aug 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apple/Handlers/RNNativeViewHandler.mm
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ - (void)reset

- (void)updateStateIfScrollView
{
UIScrollView *scrollView = [_gestureHandler retrieveScrollView:self.view];
RNGHUIScrollView *scrollView = [_gestureHandler retrieveScrollView:self.view];
if (!scrollView) {
return;
}
Expand Down
2 changes: 2 additions & 0 deletions apple/RNGHUIKit.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

typedef UIView RNGHUIView;
typedef UITouch RNGHUITouch;
typedef UIScrollView RNGHUIScrollView;

#define RNGHGestureRecognizerStateFailed UIGestureRecognizerStateFailed;
#define RNGHGestureRecognizerStatePossible UIGestureRecognizerStatePossible;
Expand All @@ -17,6 +18,7 @@ typedef UITouch RNGHUITouch;

typedef RCTUIView RNGHUIView;
typedef RCTUITouch RNGHUITouch;
typedef NSScrollView RNGHUIScrollView;

#define RNGHGestureRecognizerStateFailed NSGestureRecognizerStateFailed;
#define RNGHGestureRecognizerStatePossible NSGestureRecognizerStatePossible;
Expand Down
6 changes: 0 additions & 6 deletions apple/RNGestureHandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@
#import <Foundation/Foundation.h>
#import <React/RCTConvert.h>

#if TARGET_OS_OSX
#define RNGHUIScrollView NSScrollView
#else
#define RNGHUIScrollView UIScrollView
#endif

#define VEC_LEN_SQ(pt) (pt.x * pt.x + pt.y * pt.y)
#define TEST_MIN_IF_NOT_NAN(value, limit) \
(!isnan(limit) && ((limit < 0 && value <= limit) || (limit >= 0 && value >= limit)))
Expand Down
Loading