mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-28 12:15:37 +08:00
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:
committed by
Facebook Github Bot
parent
553f4371e0
commit
8e69a9f695
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user