[doc] Add instructions for configuration of react native with extensions (#15881)

This commit is contained in:
Rachel Guo 2023-05-16 12:52:40 -07:00 committed by GitHub
parent e5a5423f52
commit e2dda61278
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -107,6 +107,15 @@ const ort = require('onnxruntime-react-native');
```
#### Enable ONNX Runtime Extensions for React Native
To enable support for [ONNX Runtime Extensions](https://github.com/microsoft/onnxruntime-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.
```js
"onnxruntimeExtensionsEnabled": "true"
```
## Builds
[Builds](https://onnxruntime.ai/docs/build/web.html) are published to **npm** and can be installed using `npm install`