Dispatch OnLayoutEvent when node gets re-laid out

Summary: There is an OnLayoutEvent that needs to be dispatched when a ReactShadowNode gets re-laid out. Some applications rely on it, so we should support it. This diff adds this functionality.

Reviewed By: ahmedre

Differential Revision: D2768625
This commit is contained in:
Denis Koroskin
2015-12-17 18:45:45 -08:00
committed by Ahmed El-Helw
parent c144bcbc96
commit 04ae4b0ba3
2 changed files with 26 additions and 4 deletions

View File

@@ -189,7 +189,7 @@ public class FlatUIImplementation extends UIImplementation {
super.calculateRootLayout(rootNode);
rootNode.markUpdated(false);
mStateBuilder.applyUpdates(rootNode);
mStateBuilder.applyUpdates(eventDispatcher, rootNode);
}
private static @Nullable ReactImageManager findReactImageManager(List<ViewManager> viewManagers) {