File tree 5 files changed +10
-11
lines changed
5 files changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ - (void)configure:(NSDictionary *)config
21
21
recognizer.direction = [RCTConvert NSInteger: prop];
22
22
}
23
23
24
- #ifndef TARGET_OS_TV
24
+ #if ! TARGET_OS_TV
25
25
prop = config[@" numberOfPointers" ];
26
26
if (prop != nil ) {
27
27
recognizer.numberOfTouchesRequired = [RCTConvert NSInteger: prop];
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ - (BOOL)shouldFail {
76
76
77
77
- (void )performFeedbackIfRequired
78
78
{
79
- #ifndef TARGET_OS_TV
79
+ #if ! TARGET_OS_TV
80
80
if (_feedbackOnActivation) {
81
81
if (@available (iOS 10.0 , *)) {
82
82
[[[UIImpactFeedbackGenerator alloc ] initWithStyle: (UIImpactFeedbackStyleMedium)] impactOccurred ];
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ - (id)initWithGestureHandler:(RNGestureHandler*)gestureHandler
54
54
_failOffsetYStart = NAN;
55
55
_failOffsetYEnd = NAN;
56
56
_hasCustomActivationCriteria = NO ;
57
- #ifndef TARGET_OS_TV
57
+ #if ! TARGET_OS_TV
58
58
_realMinimumNumberOfTouches = self.minimumNumberOfTouches ;
59
59
#endif
60
60
}
@@ -68,7 +68,7 @@ - (void)setMinimumNumberOfTouches:(NSUInteger)minimumNumberOfTouches
68
68
69
69
- (void )touchesBegan : (NSSet <UITouch *> *)touches withEvent : (UIEvent *)event
70
70
{
71
- #ifndef TARGET_OS_TV
71
+ #if ! TARGET_OS_TV
72
72
if (_hasCustomActivationCriteria) {
73
73
// We use "minimumNumberOfTouches" property to prevent pan handler from recognizing
74
74
// the gesture too early before we are sure that all criteria (e.g. minimum distance
@@ -102,7 +102,7 @@ - (void)touchesMoved:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
102
102
}
103
103
}
104
104
if (_hasCustomActivationCriteria && self.state == UIGestureRecognizerStatePossible && [self shouldActivateUnderCustomCriteria ]) {
105
- #ifndef TARGET_OS_TV
105
+ #if ! TARGET_OS_TV
106
106
super.minimumNumberOfTouches = _realMinimumNumberOfTouches;
107
107
if ([self numberOfTouches ] >= _realMinimumNumberOfTouches) {
108
108
self.state = UIGestureRecognizerStateBegan;
@@ -206,7 +206,7 @@ - (void)configure:(NSDictionary *)config
206
206
APPLY_FLOAT_PROP (failOffsetYStart);
207
207
APPLY_FLOAT_PROP (failOffsetYEnd);
208
208
209
- #ifndef TARGET_OS_TV
209
+ #if ! TARGET_OS_TV
210
210
APPLY_NAMED_INT_PROP (minimumNumberOfTouches, @" minPointers" );
211
211
APPLY_NAMED_INT_PROP (maximumNumberOfTouches, @" maxPointers" );
212
212
#endif
Original file line number Diff line number Diff line change @@ -13,14 +13,14 @@ @implementation RNPinchGestureHandler
13
13
- (instancetype )initWithTag : (NSNumber *)tag
14
14
{
15
15
if ((self = [super initWithTag: tag])) {
16
- #ifndef TARGET_OS_TV
16
+ #if ! TARGET_OS_TV
17
17
_recognizer = [[UIPinchGestureRecognizer alloc ] initWithTarget: self action: @selector (handleGesture: )];
18
18
#endif
19
19
}
20
20
return self;
21
21
}
22
22
23
- #ifndef TARGET_OS_TV
23
+ #if ! TARGET_OS_TV
24
24
- (RNGestureHandlerEventExtraData *)eventExtraData : (UIPinchGestureRecognizer *)recognizer
25
25
{
26
26
return [RNGestureHandlerEventExtraData
Original file line number Diff line number Diff line change @@ -13,15 +13,14 @@ @implementation RNRotationGestureHandler
13
13
- (instancetype )initWithTag : (NSNumber *)tag
14
14
{
15
15
if ((self = [super initWithTag: tag])) {
16
- #ifndef TARGET_OS_TV
16
+ #if ! TARGET_OS_TV
17
17
_recognizer = [[UIRotationGestureRecognizer alloc ] initWithTarget: self action: @selector (handleGesture: )];
18
18
#endif
19
19
}
20
20
return self;
21
21
}
22
22
23
- #ifndef TARGET_OS_TV
24
- _recognizer = [[UIRotation
23
+ #if !TARGET_OS_TV
25
24
- (RNGestureHandlerEventExtraData *)eventExtraData : (UIRotationGestureRecognizer *)recognizer
26
25
{
27
26
return [RNGestureHandlerEventExtraData
You can’t perform that action at this time.
0 commit comments