react-native-sms icon indicating copy to clipboard operation
react-native-sms copied to clipboard

undefined is not an object (evaluating '_reactNative.NativeModules.SendSMS.send')

Open TarekSalahUddinMahmud opened this issue 8 years ago • 9 comments

when i called the send this error occurs

image

TarekSalahUddinMahmud avatar Aug 30 '17 10:08 TarekSalahUddinMahmud

@tsmrafee-bs it looks like you are using expo?

I don't think expo support this package

sibelius avatar Sep 28 '17 18:09 sibelius

I am not using EXPO but still facing this issue can anyone help me. The error is " [TypeError: undefined is not a function (evaluating '_reactNativeSms2.default.list')] ".

rajatpillai avatar May 17 '18 11:05 rajatpillai

I am also facing this issues @rajatpillai any success?

zainulhasan avatar Oct 24 '18 10:10 zainulhasan

I am also facing this issues on ios but Android working fine.

vkc23 avatar Dec 13 '18 12:12 vkc23

ios +1

Quadriphobs1 avatar Jan 05 '19 07:01 Quadriphobs1

After I installed the npm package, I deleted the app on emulator and stopped metro bundler, then rebuild the app and now I have this alert:

capture d ecran 2019-03-07 a 11 20 39

Just need to check if it works on a real device now !

vincentferniot avatar Mar 07 '19 10:03 vincentferniot

Is anyone else getting the same error but null is not an object?

Edit: I fixed my issue by manually linking

ananyacleetus avatar Mar 07 '19 21:03 ananyacleetus

I did manual linking, but still having this same issue, whenever console.log(SendSMS); it has the send in the object.

Quadriphobs1 avatar Mar 29 '19 03:03 Quadriphobs1

Initially i faced this issue and ended up here, then i decided to explore source code of react-native-sms package. I found out that developer used NativeModules from react-native. so i directly imported NativeModules it into my component. Guess what, its working now image

sri-chandu avatar Dec 03 '20 13:12 sri-chandu