expo-speech-recognition-with-reset
Version:
Speech Recognition for React Native Expo projects (with reset)
11 lines • 628 B
JavaScript
import { requireNativeModule } from "expo";
// It loads the native module object from the JSI or falls back to
// the bridge module (from NativeModulesProxy) if the remote debugger is on.
export const ExpoSpeechRecognitionModule = requireNativeModule("ExpoSpeechRecognition");
const stop = ExpoSpeechRecognitionModule.stop;
const abort = ExpoSpeechRecognitionModule.abort;
const reset = ExpoSpeechRecognitionModule.reset;
ExpoSpeechRecognitionModule.abort = () => abort();
ExpoSpeechRecognitionModule.stop = () => stop();
ExpoSpeechRecognitionModule.reset = () => reset();
//# sourceMappingURL=ExpoSpeechRecognitionModule.js.map