mirror of
https://github.com/status-im/react-native.git
synced 2025-02-04 13:44:04 +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
|
||||
UIView *targetView = touch.view;
|
||||
while (targetView) {
|
||||
if (targetView.reactTag && targetView.userInteractionEnabled &&
|
||||
[targetView reactRespondsToTouch:touch]) {
|
||||
if (targetView.reactTag && targetView.userInteractionEnabled) {
|
||||
break;
|
||||
}
|
||||
targetView = targetView.superview;
|
||||
|
@ -78,11 +78,6 @@
|
||||
- (void)reactFocusIfNeeded;
|
||||
- (void)reactBlur;
|
||||
|
||||
/**
|
||||
* Responder overrides - to be deprecated.
|
||||
*/
|
||||
- (BOOL)reactRespondsToTouch:(UITouch *)touch;
|
||||
|
||||
#if RCT_DEV
|
||||
|
||||
/**
|
||||
|
@ -242,12 +242,4 @@
|
||||
[self resignFirstResponder];
|
||||
}
|
||||
|
||||
/**
|
||||
* Responder overrides - to be deprecated.
|
||||
*/
|
||||
- (BOOL)reactRespondsToTouch:(__unused UITouch *)touch
|
||||
{
|
||||
return YES;
|
||||
}
|
||||
|
||||
@end
|
||||
|
Loading…
x
Reference in New Issue
Block a user