mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-05 09:29:07 +08:00
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:
committed by
Ahmed El-Helw
parent
c144bcbc96
commit
04ae4b0ba3
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user