From 473f9bca192a15e21946316a87b29001deccd5bf Mon Sep 17 00:00:00 2001 From: Tadeu Zagallo Date: Thu, 7 Jan 2016 10:21:39 -0800 Subject: [PATCH] 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 --- React/Profiler/RCTProfile.m | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/React/Profiler/RCTProfile.m b/React/Profiler/RCTProfile.m index 60ea0b157..8bcf2a56e 100644 --- a/React/Profiler/RCTProfile.m +++ b/React/Profiler/RCTProfile.m @@ -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);