mirror of
https://github.com/status-im/react-native.git
synced 2025-02-09 16:14:47 +00:00
reactRespondsToTouch:
was removed
Summary: * It complicates Touch Handling mechanism. * The same functionality can be (and should be) implemented via overriding standard `hitTest:` method. * It was marked as deprecated a while ago. Reviewed By: mmmulani Differential Revision: D4667776 fbshipit-source-id: 2e047c3308563a2849ea351a242270f0800fead2
This commit is contained in:
parent
1d270081d8
commit
ca6e0b37cf
@ -95,8 +95,7 @@ RCT_NOT_IMPLEMENTED(- (instancetype)initWithTarget:(id)target action:(SEL)action
|
|||||||
// Find closest React-managed touchable view
|
// Find closest React-managed touchable view
|
||||||
UIView *targetView = touch.view;
|
UIView *targetView = touch.view;
|
||||||
while (targetView) {
|
while (targetView) {
|
||||||
if (targetView.reactTag && targetView.userInteractionEnabled &&
|
if (targetView.reactTag && targetView.userInteractionEnabled) {
|
||||||
[targetView reactRespondsToTouch:touch]) {
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
targetView = targetView.superview;
|
targetView = targetView.superview;
|
||||||
|
@ -78,11 +78,6 @@
|
|||||||
- (void)reactFocusIfNeeded;
|
- (void)reactFocusIfNeeded;
|
||||||
- (void)reactBlur;
|
- (void)reactBlur;
|
||||||
|
|
||||||
/**
|
|
||||||
* Responder overrides - to be deprecated.
|
|
||||||
*/
|
|
||||||
- (BOOL)reactRespondsToTouch:(UITouch *)touch;
|
|
||||||
|
|
||||||
#if RCT_DEV
|
#if RCT_DEV
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -242,12 +242,4 @@
|
|||||||
[self resignFirstResponder];
|
[self resignFirstResponder];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Responder overrides - to be deprecated.
|
|
||||||
*/
|
|
||||||
- (BOOL)reactRespondsToTouch:(__unused UITouch *)touch
|
|
||||||
{
|
|
||||||
return YES;
|
|
||||||
}
|
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user