BREAKING - Make first parameter of measure and print functions CSSNodeRef instead of just context

Reviewed By: javache

Differential Revision: D4081544

fbshipit-source-id: d49679025cea027cf7b8482898de0a01fe0f9d40
This commit is contained in:
Emil Sjolander
2016-10-27 10:52:11 -07:00
committed by Facebook Github Bot
parent 553f4371e0
commit 8e69a9f695
4 changed files with 12 additions and 12 deletions

View File

@@ -50,9 +50,9 @@ typedef NS_ENUM(unsigned int, meta_prop_t) {
// cssNode api
static void RCTPrint(void *context)
static void RCTPrint(CSSNodeRef node)
{
RCTShadowView *shadowView = (__bridge RCTShadowView *)context;
RCTShadowView *shadowView = (__bridge RCTShadowView *)CSSNodeGetContext(node);
printf("%s(%zd), ", shadowView.viewName.UTF8String, shadowView.reactTag.integerValue);
}