mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
Simplify ModuleConfig array format
Reviewed By: lexs, mhorowitz Differential Revision: D3901563 fbshipit-source-id: 70aea19db1b01170be57b74ccfa1a306dfa1f362
This commit is contained in:
committed by
Facebook Github Bot 8
parent
acdd08aef7
commit
ff79224d37
@@ -329,12 +329,12 @@ RCT_NOT_IMPLEMENTED(- (instancetype)init);
|
||||
}
|
||||
|
||||
NSArray *config = @[
|
||||
self.name,
|
||||
RCTNullIfNil(constants),
|
||||
RCTNullIfNil(methods),
|
||||
RCTNullIfNil(promiseMethods),
|
||||
RCTNullIfNil(syncMethods)
|
||||
];
|
||||
self.name,
|
||||
RCTNullIfNil(constants),
|
||||
RCTNullIfNil(methods),
|
||||
RCTNullIfNil(promiseMethods),
|
||||
RCTNullIfNil(syncMethods)
|
||||
];
|
||||
RCT_PROFILE_END_EVENT(RCTProfileTagAlways, ([NSString stringWithFormat:@"[RCTModuleData config] %@", _moduleClass]));
|
||||
return config;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user