UNPKG

weex-nuke

Version:

基于 Rax 、Weex 的高性能组件体系 ~~

13 lines (11 loc) 497 B
const isWeb = typeof callNative === 'undefined'; const isNode = typeof global === 'object'; const isWeex = typeof callNative === 'function' || (typeof WXEnvironment === 'object' && WXEnvironment.platform !== 'Web'); const isReactNative = typeof __fbBatchedBridgeConfig !== 'undefined'; const appInfo = {}; const isQNWeb = false; const isQNWeex = false; const params = {}; const runtimeInfo = {}; export { isWeb, isNode, isWeex, isReactNative, appInfo, isQNWeb, isQNWeex, params, runtimeInfo };