Skip to content

Commit d4f7818

Browse files
authored
[tvOS] Fix build error (#4060)
## Description In #3991 we introduced some changes to `Hover`. However, we forgot to guard it with `CHECK_TARGET` macro, which resulted in build errors on tvOS. Fixes #4059 ## Test plan Tested on `tvos-example` from Reanimated (that it builds) and our expo-example.
1 parent 8baabdf commit d4f7818

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

packages/react-native-gesture-handler/apple/Handlers/RNHoverHandler.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,11 +166,13 @@ - (void)setCurrentPointerType:(RNGestureHandlerPointerType)pointerType
166166
{
167167
_pointerType = pointerType;
168168

169+
#if CHECK_TARGET(16_1)
169170
if (@available(iOS 16.1, *)) {
170171
if (((UIHoverGestureRecognizer *)self.recognizer).zOffset > 0.0) {
171172
_pointerType = RNGestureHandlerStylus;
172173
}
173174
}
175+
#endif
174176
}
175177

176178
- (RNGestureHandlerEventExtraData *)eventExtraData:(UIGestureRecognizer *)recognizer

0 commit comments

Comments
 (0)