Skip to content

Commit 5c4af60

Browse files
committed
fix: remove bindings from stop & abort
1 parent f62ce24 commit 5c4af60

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/ExpoSpeechRecognitionModule.ts

+6
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,9 @@ import type { ExpoSpeechRecognitionModuleType } from "./ExpoSpeechRecognitionMod
66
// the bridge module (from NativeModulesProxy) if the remote debugger is on.
77
export const ExpoSpeechRecognitionModule =
88
requireNativeModule<ExpoSpeechRecognitionModuleType>("ExpoSpeechRecognition");
9+
10+
const stop = ExpoSpeechRecognitionModule.stop;
11+
const abort = ExpoSpeechRecognitionModule.abort;
12+
13+
ExpoSpeechRecognitionModule.abort = () => abort();
14+
ExpoSpeechRecognitionModule.stop = () => stop();

0 commit comments

Comments
 (0)