How to use the @bentley/imodeljs-native/loadNativePlatform.js.loadNativePlatform function in @bentley/imodeljs-native

To help you get started, we’ve selected a few @bentley/imodeljs-native examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github imodeljs / imodeljs / core / backend / src / IModelHost.ts View on Github external
public static load(dir?: string): typeof IModelJsNative {
    return this.isMobile ? this.imodeljsMobile.imodeljsNative : // we are running on a mobile platform
      require("@bentley/imodeljs-native/loadNativePlatform.js").loadNativePlatform(dir); // We are running in node or electron.
  }
}