mirror of
https://github.com/status-im/react-native.git
synced 2025-01-24 00:09:08 +00:00
74c24147e2
Summary: This diff includes two changes: 1. Even though `RCTViewComponentView` conforms to `RCTTouchableComponentViewProtocol`, it never implemented this protocol. This diff makes the correction. 2. Make the necessary changes to `RCTSurfaceTouchHandler` required by the changes in `RCTTouchableComponentViewProtocol`. This means modifying the `ActiveTouch` struct to hold `SharedTouchEventEmitter`s. It also means passing in the touch point to the `componentView`'s `touchEventEmitterAtPoint` method. Reviewed By: shergin Differential Revision: D9696909 fbshipit-source-id: 3d4a833f7dbae6d0238a0807eb2220250ccbae3d
14 lines
407 B
Objective-C
14 lines
407 B
Objective-C
/**
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
#import <UIKit/UIKit.h>
|
|
#import <fabric/components/view/TouchEventEmitter.h>
|
|
|
|
@protocol RCTTouchableComponentViewProtocol <NSObject>
|
|
- (facebook::react::SharedTouchEventEmitter)touchEventEmitterAtPoint:(CGPoint)point;
|
|
@end
|