React Native sdk not working
# support
s
What response you expected to get: I expected the project to run, and the hooks in the example to work perfectly using the sdk What response you actually got instead: it didn't work, I got
' ERROR  Warning: TypeError: Cannot read property 'useVapi' of undefined'
this is how I'm importing useVapi
import useVapi, { CALL_STATUS } from '../../hooks/useVapi';
I copied the hook directly from the bare react native cli example, followed the same pattern to import instantiate an instance new Vapi() Created a view to connect and display messages and getting a bunch of errors. I have followed the instructions ito installing dependencies, running pod install, adding the things to info.plist, etc. Curious if anyone has been able to get the sdk working in a react native project? any other examples?
This is the latest error message: ERROR Invariant Violation:
new NativeEventEmitter()
requires a non-null argument., js engine: hermes [Component Stack] ERROR Warning: TypeError: Cannot read property 'RootStack' of undefined It disappears when I comment out the useVapi
s
Hey @Shai allow me sometime to check with the team.
s
Thanks! Any updates?
s
Hey @Shai allow me time till tomorrow, was slipped from my list.
2 Views