mirror of
https://github.com/Tencent/Hippy.git
synced 2026-10-22 08:46:09 +08:00
33 lines
902 B
JavaScript
33 lines
902 B
JavaScript
/* eslint-disable no-undef */
|
|
/* eslint-disable no-underscore-dangle */
|
|
|
|
Hippy.document = {
|
|
createNode(rootViewId, queue) {
|
|
Hippy.bridge.callNative('UIManagerModule', 'createNode', rootViewId, queue);
|
|
},
|
|
updateNode(rootViewId, queue) {
|
|
Hippy.bridge.callNative('UIManagerModule', 'updateNode', rootViewId, queue);
|
|
},
|
|
deleteNode(rootViewId, queue) {
|
|
Hippy.bridge.callNative('UIManagerModule', 'deleteNode', rootViewId, queue);
|
|
},
|
|
flushBatch(rootViewId, queue) {
|
|
Hippy.bridge.callNative('UIManagerModule', 'flushBatch', rootViewId, queue);
|
|
},
|
|
startBatch() {
|
|
Hippy.bridge.callNative('UIManagerModule', 'startBatch');
|
|
},
|
|
endBatch() {
|
|
Hippy.bridge.callNative('UIManagerModule', 'endBatch');
|
|
|
|
if (typeof flushQueueImmediate === 'function') {
|
|
flushQueueImmediate();
|
|
}
|
|
},
|
|
sendRenderError(error) {
|
|
if (error) {
|
|
throw error;
|
|
}
|
|
},
|
|
};
|