Skip to content

Commit 1502684

Browse files
committed
simplify macos macro
1 parent ec3f17d commit 1502684

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,9 @@ - (NSString *)accessibilityLabel
150150

151151
return str;
152152
}
153-
#endif
154153

155-
// TODO: Combine all "if TARGET_OS_OSX" macros in this file
154+
#else
156155

157-
#if TARGET_OS_OSX
158156
- (void)mountChildComponentView:(RNGHUIView *)childComponentView index:(NSInteger)index
159157
{
160158
if (childComponentView.superview != nil) {
@@ -207,6 +205,7 @@ - (void)updateLayoutMetrics:(const facebook::react::LayoutMetrics &)layoutMetric
207205
self.hidden = layoutMetrics.displayType == facebook::react::DisplayType::None;
208206
}
209207
}
208+
210209
#endif
211210

212211
@end

0 commit comments

Comments
 (0)