title | parent | grand_parent | has_children | nav_order |
---|---|---|---|---|
React Native |
JavaScript |
Get Started |
false |
3 |
{: .no_toc }
- TOC placeholder {:toc}
# install latest release version
npm install onnxruntime-react-native
// use ES6 style import syntax (recommended)
import * as ort from 'onnxruntime-react-native';
// or use CommonJS style import syntax
const ort = require('onnxruntime-react-native');
To enable support for ONNX Runtime Extensions in your React Native app,
you need to specify the following configuration as a top-level entry (note: usually where the package name
and version
fields are) in your project's root directory package.json
file.
"onnxruntimeExtensionsEnabled": "true"