File tree Expand file tree Collapse file tree 3 files changed +4
-0
lines changed
Expand file tree Collapse file tree 3 files changed +4
-0
lines changed Original file line number Diff line number Diff line change 1818@interface RCTTouchEvent : NSObject <RCTEvent>
1919
2020- (instancetype )initWithEventName : (NSString *)eventName
21+ reactTag : (NSNumber *)reactTag
2122 reactTouches : (NSArray <NSDictionary *> *)reactTouches
2223 changedIndexes : (NSArray <NSNumber *> *)changedIndexes
2324 coalescingKey : (uint16_t )coalescingKey NS_DESIGNATED_INITIALIZER;
Original file line number Diff line number Diff line change @@ -21,11 +21,13 @@ @implementation RCTTouchEvent
2121@synthesize viewTag = _viewTag;
2222
2323- (instancetype )initWithEventName : (NSString *)eventName
24+ reactTag : (NSNumber *)reactTag
2425 reactTouches : (NSArray <NSDictionary *> *)reactTouches
2526 changedIndexes : (NSArray <NSNumber *> *)changedIndexes
2627 coalescingKey : (uint16_t )coalescingKey
2728{
2829 if (self = [super init ]) {
30+ _viewTag = reactTag;
2931 _eventName = eventName;
3032 _reactTouches = reactTouches;
3133 _changedIndexes = changedIndexes;
Original file line number Diff line number Diff line change @@ -199,6 +199,7 @@ - (void)_updateAndDispatchTouches:(NSSet<UITouch *> *)touches
199199 }
200200
201201 RCTTouchEvent *event = [[RCTTouchEvent alloc ] initWithEventName: eventName
202+ reactTag: self .view.reactTag
202203 reactTouches: reactTouches
203204 changedIndexes: changedIndexes
204205 coalescingKey: _coalescingKey];
You can’t perform that action at this time.
0 commit comments