mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-05 22:38:59 +08:00
Summary: The dispatchViewManager command should, according to the spec, only be executed after children are added. On Nodes, however, due to the fact that the Views in question may not have been created until the call to the command occurred, the dispatchViewManagerCommand may occur too early. Consequently, ensure that we apply any state updates to the Node represented by that reactTag before we enqueue the view manager command (this will ensure that views are properly added to the parent, etc before sending the command). Reviewed By: astreet Differential Revision: D3428855