/// <summary> /// To implement the transactional requirement, UI changes are only /// committed to the actual view hierarchy once a batch of JavaScript /// to native calls have been completed. /// </summary> public void OnBatchComplete() { var batchId = _batchId++; DispatchingViewUpdates?.Invoke(this, new EventArgs()); _uiImplementation.DispatchViewUpdates(batchId); }
/// <summary> /// To implement the transactional requirement, UI changes are only /// committed to the actual view hierarchy once a batch of JavaScript /// to native calls have been completed. /// </summary> public void OnBatchComplete() { var batchId = _batchId++; Context.RunOnLayoutQueueThread(() => { _uiImplementation.DispatchViewUpdates(batchId); }); }
/// <summary> /// To implement the transactional requirement, UI changes are only /// committed to the actual view hierarchy once a batch of JavaScript /// to native calls have been completed. /// </summary> public void OnBatchComplete() { var batchId = _batchId++; using (Tracer.Trace(Tracer.TRACE_TAG_REACT_BRIDGE, "onBatchCompleteUI") .With("BatchId", batchId)) { _uiImplementation.DispatchViewUpdates(_eventDispatcher, batchId); } }
/// <summary> /// To implement the transactional requirement, UI changes are only /// committed to the actual view hierarchy once a batch of JavaScript /// to native calls have been completed. /// </summary> public void OnBatchComplete() { var batchId = _batchId++; _uiImplementation.DispatchViewUpdates(batchId); }