Skip to content

Commit 5204369

Browse files
committed
fix macos build crash
1 parent ab204e3 commit 5204369

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

packages/react-native-gesture-handler/apple/RNGestureHandlerDetector.mm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,11 @@ - (instancetype)initWithFrame:(CGRect)frame
4444

4545
// TODO: I'm not sure whether this is the correct place for cleanup
4646
// Possibly allowing recycling and doing this in prepareForRecycle would be better
47+
#if TARGET_OS_OSX
48+
- (void)willMoveToWindow:(NSWindow *)newWindow
49+
#else
4750
- (void)willMoveToWindow:(UIWindow *)newWindow
51+
#endif
4852
{
4953
if (newWindow == nil) {
5054
RNGestureHandlerManager *handlerManager = [RNGestureHandlerModule handlerManagerForModuleId:_moduleId];

0 commit comments

Comments
 (0)