akvelon/react-native-sms-user-consent

null is not an object (evaluating '_nativeApi.ReactNativeSmsUserConsent.startNativeSmsListener')

webjargit opened this issue · 3 comments

Just followed the documentation, on an Android phone, and I'm getting the above error in the console.

Any ideas?

Hi @webjargit, thank you for reporting the issue. Could you please provide the following info in order to help us to resolve the issue:

  1. Device model
  2. Android version
  3. Your environment info - output of the npx react-native info command

Closing since no sufficient details provided :(

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')