sunboykenneth / react-native-voicebox-speech-rec

A powerful speech recognition library for React Native applications, enabling real-time speech-to-text transcription.
MIT License
16 stars 2 forks source link

TypeError: Cannot read property 'useRef' of null #10

Open Skvitthani opened 1 week ago

Skvitthani commented 1 week ago

TypeError: Cannot read property 'useRef' of null

TypeError: null is not an object (evaluating 'dispatcher.useRef')

This error is located at: in SpeechRecProvider (at SpeechRecognitionRootView.js:5) in SpeechRecognitionRootView (at App.js:260) in RCTView (at View.js:32) in View (created by MenuProvider) in RCTView (at View.js:32) in View (created by MenuProvider) in MenuProvider (at App.js:255) in App (at Thrive_AI_App/index.js:18) in Provider (at Thrive_AI_App/index.js:17) in Root (at renderApplication.js:50) in RCTView (at View.js:32) in View (at AppContainer.js:92) in RCTView (at View.js:32) in View (at AppContainer.js:119) in AppContainer (at renderApplication.js:43) in Thrive(RootComponent) (at renderApplication.js:60)

import {StyleSheet, Text, View} from 'react-native'; import React from 'react'; import {SpeechRecognitionRootView} from 'react-native-voicebox-speech-rec';

const App = () => { return (

App

); };

export default App;

"dependencies": { "react": "18.2.0", "react-native": "0.74.1", "react-native-background-fetch": "^4.2.5", "react-native-html-to-pdf": "^0.12.0", "react-native-share": "^10.2.1", "react-native-voicebox-speech-rec": "^1.0.4" },

and one more thing is that when I install this library and then install the pods it removes other pods like Removing RNSVG, Removing RNScreens and Removing react-native-safe-area-context.

Adding a custom script phase for Pod RNFBApp: [RNFB] Core Configuration Auto-linking React Native modules for target Thrive: BVLinearGradient, CodePush, RNAppleAuthentication, RNCAsyncStorage, RNCClipboard, RNDateTimePicker, RNFBApp, RNFBAuth, RNFBFirestore, RNFBMessaging, RNFS, RNFastImage, RNGestureHandler, RNGoogleSignin, RNIap, RNImageCropPicker, RNKeychain, RNLocalize, RNNotifee, RNPermissions, RNRate, RNReanimated, RNShare, RNSound, RNVectorIcons, ReactNativeAvoidSoftinput, TextToSpeech, appcenter-analytics, appcenter-core, appcenter-crashes, react-native-biometrics, react-native-fbsdk-next, react-native-image-picker, react-native-in-app-review, react-native-netinfo, react-native-pager-view, react-native-splash-screen, react-native-track-player, react-native-version-info, react-native-voice, and react-native-webview [Codegen] Generating ./build/generated/ios/React-Codegen.podspec.json Analyzing dependencies [Codegen] Found FBReactNativeSpec /Users/mac/Documents/JSDev/Thrive_AI_App/node_modules/react-native-fbsdk-next/react-native-fbsdk-next.podspec:4: warning: already initialized constant Pod::FBSDKVersion /Users/mac/Documents/JSDev/Thrive_AI_App/node_modules/react-native-fbsdk-next/react-native-fbsdk-next.podspec:4: warning: previous definition of FBSDKVersion was here Downloading dependencies Removing RNSVG Removing RNScreens Removing react-native-safe-area-context Generating Pods project Integrating client project Pod installation complete! There are 78 dependencies from the Podfile and 113 total pods installed.