UNPKG

842 Btext/x-cView Raw
1/*
2 * Copyright (c) Facebook, Inc. and its affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 */
7
8#import <Foundation/Foundation.h>
9
10#import <React/RCTEventDispatcher.h>
11
12/**
13 * Represents a touch event, which may be composed of several touches (one for every finger).
14 * For more information on contents of passed data structures see RCTTouchHandler.
15 */
16@interface RCTTouchEvent : NSObject <RCTEvent>
17
18- (instancetype)initWithEventName:(NSString *)eventName
19 reactTag:(NSNumber *)reactTag
20 reactTouches:(NSArray<NSDictionary *> *)reactTouches
21 changedIndexes:(NSArray<NSNumber *> *)changedIndexes
22 coalescingKey:(uint16_t)coalescingKey NS_DESIGNATED_INITIALIZER;
23@end