From a38188fad8acfb7513d0f3733337c9e737a9b78b Mon Sep 17 00:00:00 2001 From: Reginald Alfret Date: Wed, 23 Sep 2026 21:09:11 +0530 Subject: [PATCH] fix(react-native): remove invalid config plugin reference in app.json and README (fixes #548) Signed-off-by: Reginald Alfret --- .../examples/React_Native/ort-rn-basic-usage/README.md | 10 ++-------- .../examples/React_Native/ort-rn-basic-usage/app.json | 1 - 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/mobile/examples/React_Native/ort-rn-basic-usage/README.md b/mobile/examples/React_Native/ort-rn-basic-usage/README.md index b38d562de..69fc5a2f7 100644 --- a/mobile/examples/React_Native/ort-rn-basic-usage/README.md +++ b/mobile/examples/React_Native/ort-rn-basic-usage/README.md @@ -81,15 +81,9 @@ The following steps were done in this sample for using onxnruntime-react-native. 3. Generate Android and iOS directories native code to run your React Native app. - In this sample project, it generates the native code automatically by using package `onnxruntime-react-native` as an Expo plugin. (Recommended approach.) - - - In `/app.json`, add the following line to section `expo`: - ``` - "plugins": ["onnxruntime-react-native"], - ``` - Note: The plugin is added by default in `app.json` in the sample. + `onnxruntime-react-native` is linked automatically via React Native autolinking during `expo prebuild`. It is a native React Native module, not an Expo config plugin, so no plugin entry is required in `app.json`. - - Run the following command in `` to generate Android and iOS project: More info about [Expo CLI Prebuild](https://docs.expo.dev/workflow/prebuild/). + - Run the following command in `` to generate the Android and iOS project: More info about [Expo CLI Prebuild](https://docs.expo.dev/workflow/prebuild/). ```sh expo prebuild ``` diff --git a/mobile/examples/React_Native/ort-rn-basic-usage/app.json b/mobile/examples/React_Native/ort-rn-basic-usage/app.json index 3e09275b2..6e765be5c 100644 --- a/mobile/examples/React_Native/ort-rn-basic-usage/app.json +++ b/mobile/examples/React_Native/ort-rn-basic-usage/app.json @@ -2,7 +2,6 @@ "expo": { "name": "OrtReactNativeBasicUsage", "slug": "OrtReactNativeBasicUsage", - "plugins": ["onnxruntime-react-native"], "version": "1.0.0", "orientation": "portrait", "icon": "./assets/icon.png",