mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-02-06 09:17:55 +08:00
- [ReactNative] Fix indentation | Ben Alpert - [ReactKit] Bring back ability to jump to syntax error from redbox | Alex Kotliarskyi - [ReactKit] Update pthread.h import path to be (more?) correct | Ben Alpert - Simplified event handling | Nick Lockwood - [ReactNative] more readme - xcode error help | Spencer Ahrens
61 lines
1.3 KiB
Objective-C
61 lines
1.3 KiB
Objective-C
// Copyright 2004-present Facebook. All Rights Reserved.
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
/**
|
|
* All of this will be replaced with an auto-generated bridge.
|
|
*/
|
|
|
|
typedef NS_ENUM(NSUInteger, RCTJSModuleIDs) {
|
|
RCTModuleIDReactIOSEventEmitter,
|
|
RCTModuleIDJSTimers, // JS timer tracking module
|
|
RCTModuleIDReactIOS,
|
|
RCTModuleIDBundler,
|
|
RCTModuleIDDimensions,
|
|
RCTModuleIDDeviceEventEmitter,
|
|
RCTModuleIDNativeAppEventEmitter,
|
|
};
|
|
|
|
/**
|
|
* JS module `RCTIOSEventEmitter`.
|
|
*/
|
|
typedef NS_ENUM(NSUInteger, RCTEventEmitterRemoteMethodIDs) {
|
|
RCTEventEmitterReceiveEvent = 0,
|
|
RCTEventEmitterReceiveTouches
|
|
};
|
|
|
|
typedef NS_ENUM(NSUInteger, RCTKeyCode) {
|
|
RCTKeyCodeBackspace = 8,
|
|
RCTKeyCodeReturn = 13,
|
|
};
|
|
|
|
/**
|
|
* JS timer tracking module.
|
|
*/
|
|
typedef NS_ENUM(NSUInteger, RCTJSTimersMethodIDs) {
|
|
RCTJSTimersCallTimers = 0
|
|
};
|
|
|
|
typedef NS_ENUM(NSUInteger, RCTReactIOSMethodIDs) {
|
|
RCTReactIOSUnmountComponentAtNodeAndRemoveContainer = 0,
|
|
};
|
|
|
|
typedef NS_ENUM(NSUInteger, RCTBundlerMethodIDs) {
|
|
RCTBundlerRunApplication = 0
|
|
};
|
|
|
|
typedef NS_ENUM(NSUInteger, RCTDimensionsMethodIDs) {
|
|
RCTDimensionsSet = 0
|
|
};
|
|
|
|
typedef NS_ENUM(NSUInteger, RCTDeviceEventEmitterMethodIDs) {
|
|
RCTDeviceEventEmitterEmit = 0
|
|
};
|
|
|
|
@interface RCTModuleIDs : NSObject
|
|
|
|
+ (NSDictionary *)config;
|
|
|
|
@end
|
|
|