/// <summary> /// Invoked at the end of a transaction to commit any updates to the /// node hierarchy. /// </summary> /// <param name="eventDispatcher">The event dispatcher.</param> /// <param name="batchId">The batch identifier.</param> public void DispatchViewUpdates(EventDispatcher eventDispatcher, int batchId) { foreach (var tag in _shadowNodeRegistry.RootNodeTags) { var cssRoot = _shadowNodeRegistry.GetNode(tag); NotifyBeforeOnLayoutRecursive(cssRoot); CalculateRootLayout(cssRoot); ApplyUpdatesRecursive(cssRoot, eventDispatcher); } _nativeViewHierarchyOptimizer.OnBatchComplete(); _operationsQueue.DispatchViewUpdates(batchId); }
/// <summary> /// Invoked at the end of a transaction to commit any updates to the /// node hierarchy. /// </summary> /// <param name="eventDispatcher">The event dispatcher.</param> /// <param name="batchId">The batch identifier.</param> public void DispatchViewUpdates(EventDispatcher eventDispatcher, int batchId) { foreach (var tag in _shadowNodeRegistry.RootNodeTags) { var cssRoot = _shadowNodeRegistry.GetNode(tag); NotifyBeforeOnLayoutRecursive(cssRoot); CalculateRootLayout(cssRoot); ApplyUpdatesRecursive(cssRoot, 0f, 0f); //Print tree to easy debug Log.Info(ReactConstants.Tag, "Current node tree as:\n"); PrintNodeTree("", cssRoot, true); } _nativeViewHierarchyOptimizer.OnBatchComplete(); _operationsQueue.DispatchViewUpdates(batchId); }
/// <summary> /// Invoked at the end of a transaction to commit any updates to the /// node hierarchy. /// </summary> /// <param name="batchId">The batch identifier.</param> public void DispatchViewUpdates(int batchId) { UpdateViewHierarchy(); _nativeViewHierarchyOptimizer.OnBatchComplete(); _operationsQueue.DispatchViewUpdates(batchId); }