add node measure event and passing the callback to java layer

Summary: Adds measure event and its listener initial code structure

Reviewed By: davidaurelio

Differential Revision: D15600738

fbshipit-source-id: d15764e0b64edb170fcb15e0912ecce5f7e53595
This commit is contained in:
Sidharth Guglani
2019-06-06 20:59:24 -07:00
committed by Facebook Github Bot
parent 2701d80078
commit 755fa07b39
4 changed files with 16 additions and 2 deletions

View File

@@ -21,7 +21,8 @@ struct Event {
NodeDeallocation,
NodeLayout,
LayoutPassStart,
LayoutPassEnd
LayoutPassEnd,
NodeMeasure,
};
class Data;
using Subscriber = void(const YGNode&, Type, Data);
@@ -76,5 +77,10 @@ struct Event::TypedData<Event::LayoutPassEnd> {
void* layoutContext;
};
template <>
struct Event::TypedData<Event::NodeMeasure> {
void* layoutContext;
};
} // namespace yoga
} // namespace facebook