From e2dda6127807cd7d52c878aa1b9c30b886f2f7e1 Mon Sep 17 00:00:00 2001 From: Rachel Guo <35738743+YUNQIUGUO@users.noreply.github.com> Date: Tue, 16 May 2023 12:52:40 -0700 Subject: [PATCH] [doc] Add instructions for configuration of react native with extensions (#15881) --- docs/get-started/with-javascript.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/get-started/with-javascript.md b/docs/get-started/with-javascript.md index e097c9099a..d27885c67c 100644 --- a/docs/get-started/with-javascript.md +++ b/docs/get-started/with-javascript.md @@ -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`