Package 

Class UIViewOperationQueue


  • 
    public class UIViewOperationQueue
    
                        

    This class acts as a buffer for command executed on NativeViewHierarchyManager. It expose similar methods as mentioned classes but instead of executing commands immediately it enqueues those operations in a queue that is then flushed from UIManagerModule once JS batch of ui operations is finished. This is to make sure that we execute all the JS operation coming from a single batch a single loop of the main (UI) android looper.

    TODO(7135923): Pooling of operation objects TODO(5694019): Consider a better data structure for operations queue to save on allocations