From 5bd15b58b6506458183af96bad7f223ba150a11a Mon Sep 17 00:00:00 2001 From: riderodd Date: Mon, 9 Nov 2026 11:41:02 +0100 Subject: [PATCH] fix: require react-native >= 0.80 in peerDependencies The TurboModule spec uses CodegenTypes.EventEmitter, which react-native only exports since 0.80. Older versions (e.g. Expo SDK 53) fail codegen. Refs #166 --- README.md | 2 ++ package.json | 2 +- yarn.lock | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5c82803..b1069cb 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,8 @@ Speech recognition module for react native using [Vosk](https://github.com/alpha npm install -S react-native-vosk ``` +Requires React Native 0.80 or newer (Expo SDK 54+). For older versions, use `react-native-vosk@1.0.0`. + ### Models Vosk uses prebuilt models to perform speech recognition offline. You have to download the model(s) that you need on [Vosk official website](https://alphacephei.com/vosk/models) diff --git a/package.json b/package.json index adf2322..51d413a 100644 --- a/package.json +++ b/package.json @@ -91,7 +91,7 @@ }, "peerDependencies": { "react": "*", - "react-native": "*" + "react-native": ">=0.80.0" }, "workspaces": [ "example" diff --git a/yarn.lock b/yarn.lock index 08b631d..36c45ea 100644 --- a/yarn.lock +++ b/yarn.lock @@ -11457,7 +11457,7 @@ __metadata: typescript: ^5.9.3 peerDependencies: react: "*" - react-native: "*" + react-native: ">=0.80.0" languageName: unknown linkType: soft