mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-23 12:07:02 +08:00
Append LayoutUpdateListener to UIViewOperationQueue
Summary: There are multiple UI thread passes during the layout process. The first is with all of the operations from React (createView, manageChildren, etc). The second is during onCollectExtraUpdates after the layout pass, when things like Text need to be precomputed before later being sent over to the views. The onLayoutUpdateListener needs to run AFTER onCollectExtraUpdates operations are executed, so this is now queued up in the UIViewOperationQueue Reviewed By: mdvacca Differential Revision: D9416260 fbshipit-source-id: d1a4eaf38a4f6c82d41def34ffb94d303e8f50d4
This commit is contained in:
committed by
Facebook Github Bot
parent
f7a11fcd97
commit
833954a669
@@ -709,7 +709,7 @@ public class UIImplementation {
|
||||
}
|
||||
|
||||
if (mLayoutUpdateListener != null) {
|
||||
mLayoutUpdateListener.onLayoutUpdated(cssRoot);
|
||||
mOperationsQueue.enqueueLayoutUpdateFinished(cssRoot, mLayoutUpdateListener);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user