mirror of
https://github.com/Tencent/Hippy.git
synced 2026-10-22 00:45:15 +08:00
0dc50af2cd
* refactor(hippy-vue,hippy-react): change eslint format * refactor(hippy-vue,hippy-react): change eslint to eslint-config-tencent
41 lines
630 B
JavaScript
41 lines
630 B
JavaScript
/* eslint-disable no-underscore-dangle */
|
|
|
|
global.__PLATFORM__ = null;
|
|
global.__HIPPYNATIVEGLOBAL__ = {};
|
|
global.__GLOBAL__ = {
|
|
nodeId: 0,
|
|
jsModuleList: {},
|
|
};
|
|
global.Hippy = {
|
|
on() {},
|
|
bridge: {
|
|
callNative() {},
|
|
callNativeWithPromise() {
|
|
return Promise.resolve();
|
|
},
|
|
callNativeWithCallbackId() {
|
|
return 1;
|
|
},
|
|
},
|
|
device: {
|
|
platform: {
|
|
OS: null,
|
|
},
|
|
screen: {
|
|
scale: 2,
|
|
},
|
|
window: {
|
|
},
|
|
},
|
|
document: {
|
|
createNode() {},
|
|
updateNode() {},
|
|
deleteNode() {},
|
|
startBatch() {},
|
|
endBatch() {},
|
|
},
|
|
register: {
|
|
regist() {},
|
|
},
|
|
};
|