null is not an object (evaluating '_nativeApi.ReactNativeSmsUserConsent.startNativeSmsListener')
webjargit opened this issue · 3 comments
webjargit commented
Just followed the documentation, on an Android phone, and I'm getting the above error in the console.
Any ideas?
eabdullazyanov commented
Hi @webjargit, thank you for reporting the issue. Could you please provide the following info in order to help us to resolve the issue:
- Device model
- Android version
- Your environment info - output of the
npx react-native info
command
eabdullazyanov commented
Closing since no sufficient details provided :(
john-harding commented
I was able to fix this by manually linking with:
react-native link @eabdullazyanov/react-native-sms-user-consent
Then in android/app/build.gradle
adding this to the dependencies
:
implementation project(':@eabdullazyanov_react-native-sms-user-consent')