pass measure callback data from c++ to java

Summary:
Passing Measure callback data - width, widthMeasureMode, height, heightMeasureMode, measuredWidth and measuredHeight along with NodeMeasure event
This data is then propagated to java layer in this diff

Reviewed By: davidaurelio

Differential Revision: D15697523

fbshipit-source-id: 615463da237175ff88abef3f6528b55333ccd915
This commit is contained in:
Sidharth Guglani
2019-06-12 00:26:21 -07:00
committed by Facebook Github Bot
parent 19fd066507
commit a130ac2f9c
2 changed files with 16 additions and 1 deletions

View File

@@ -1636,7 +1636,15 @@ static void YGNodeWithMeasureFuncSetMeasuredDimensions(
layoutContext);
#ifdef YG_ENABLE_EVENTS
Event::publish<Event::NodeMeasure>(node, {layoutContext});
Event::publish<Event::NodeMeasure>(
node,
{layoutContext,
innerWidth,
widthMeasureMode,
innerHeight,
heightMeasureMode,
measuredSize.width,
measuredSize.height});
#endif
node->setLayoutMeasuredDimension(