Skip to content

Commit 1c75d20

Browse files
committed
Fix macos but right
1 parent 960a67d commit 1c75d20

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,6 @@ + (BOOL)shouldBeRecycled
4343
{
4444
return NO;
4545
}
46-
47-
- (void)traitCollectionDidChange:(UITraitCollection *)previousTraitCollection
48-
{
49-
[super traitCollectionDidChange:previousTraitCollection];
50-
[_buttonView applyStartAnimationState];
51-
}
5246
#endif
5347

5448
// Needed because of this: https://github.com/facebook/react-native/pull/37274
@@ -299,6 +293,12 @@ - (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event
299293

300294
return [_buttonView hitTest:buttonPoint withEvent:event];
301295
}
296+
297+
- (void)traitCollectionDidChange:(UITraitCollection *)previousTraitCollection
298+
{
299+
[super traitCollectionDidChange:previousTraitCollection];
300+
[_buttonView applyStartAnimationState];
301+
}
302302
#endif
303303

304304
@end

0 commit comments

Comments
 (0)