Update createView C function on profiler

Summary:
public

The props argument of the `-[RCTComponentData createView:props:]` method was removed,
but the C function used to swizzle it in the profiler wasn't updated.

Reviewed By: majak

Differential Revision: D2811228

fb-gh-sync-id: 8896638c77370142e29913b5fb80e7fd748254b5
This commit is contained in:
Tadeu Zagallo 2016-01-07 10:21:39 -08:00 коммит произвёл facebook-github-bot-3
Родитель 0fa1f8d94f
Коммит 473f9bca19
1 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -35,8 +35,8 @@ NSString *const RCTProfileDidEndProfiling = @"RCTProfileDidEndProfiling";
#pragma mark - Constants
NSString const *RCTProfileTraceEvents = @"traceEvents";
NSString const *RCTProfileSamples = @"samples";
NSString *const RCTProfileTraceEvents = @"traceEvents";
NSString *const RCTProfileSamples = @"samples";
NSString *const RCTProfilePrefix = @"rct_profile_";
#pragma mark - Variables
@ -273,12 +273,12 @@ static void RCTProfileHookInstance(id instance)
object_setClass(instance, proxyClass);
}
static UIView *(*originalCreateView)(RCTComponentData *, SEL, NSNumber *, NSDictionary *);
static UIView *(*originalCreateView)(RCTComponentData *, SEL, NSNumber *);
RCT_EXTERN UIView *RCTProfileCreateView(RCTComponentData *self, SEL _cmd, NSNumber *tag, NSDictionary *props);
UIView *RCTProfileCreateView(RCTComponentData *self, SEL _cmd, NSNumber *tag, NSDictionary *props)
RCT_EXTERN UIView *RCTProfileCreateView(RCTComponentData *self, SEL _cmd, NSNumber *tag);
UIView *RCTProfileCreateView(RCTComponentData *self, SEL _cmd, NSNumber *tag)
{
UIView *view = originalCreateView(self, _cmd, tag, props);
UIView *view = originalCreateView(self, _cmd, tag);
RCTProfileHookInstance(view);