We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d44113 commit 6ccdf85Copy full SHA for 6ccdf85
ReactCommon/yoga/yoga/Yoga.cpp
@@ -3667,6 +3667,9 @@ bool YGLayoutNodeInternal(
3667
const YGConfigRef config,
3668
YGMarkerLayoutData& layoutMarkerData,
3669
void* const layoutContext) {
3670
+#ifdef YG_ENABLE_EVENTS
3671
+ Event::publish<Event::NodeLayout>(node);
3672
+#endif
3673
YGLayout* layout = &node->getLayout();
3674
3675
gDepth++;
ReactCommon/yoga/yoga/events.h
@@ -15,7 +15,7 @@ namespace facebook {
15
namespace yoga {
16
17
struct Event {
18
- enum Type { NodeAllocation, NodeDeallocation };
+ enum Type { NodeAllocation, NodeDeallocation, NodeLayout };
19
class Data;
20
using Subscriber = void(const YGNode&, Type, Data);
21
0 commit comments