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:
Valentin Shergin 2017-04-10 12:27:47 -07:00 committed by Facebook Github Bot
parent 1d270081d8
commit ca6e0b37cf
3 changed files with 1 additions and 15 deletions

View File

@ -95,8 +95,7 @@ RCT_NOT_IMPLEMENTED(- (instancetype)initWithTarget:(id)target action:(SEL)action
// Find closest React-managed touchable view
UIView *targetView = touch.view;
while (targetView) {
if (targetView.reactTag && targetView.userInteractionEnabled &&
[targetView reactRespondsToTouch:touch]) {
if (targetView.reactTag && targetView.userInteractionEnabled) {
break;
}
targetView = targetView.superview;

View File

@ -78,11 +78,6 @@
- (void)reactFocusIfNeeded;
- (void)reactBlur;
/**
* Responder overrides - to be deprecated.
*/
- (BOOL)reactRespondsToTouch:(UITouch *)touch;
#if RCT_DEV
/**

View File

@ -242,12 +242,4 @@
[self resignFirstResponder];
}
/**
* Responder overrides - to be deprecated.
*/
- (BOOL)reactRespondsToTouch:(__unused UITouch *)touch
{
return YES;
}
@end