undefined is not an object(evaluating '_reactNativeSmsX.default.send')
Closed this issue · 3 comments
zainulhasan commented
Hi everyone I get this error when I click sends SMS button.
sendSMSFunction() {
SendSMS.send(123, "+95912345678", "Hey.., this is me!\nGood to see you. Have a nice day.",
(msg)=>{
ToastAndroid.show(msg, ToastAndroid.SHORT);
}
);
}
i am using code from example.
Thanks
react-native-cli: 2.0.1
react-native: 0.57.3
zainulhasan commented
problem is solved and application is working 💯. there was issues with app permissions.
Riki220999 commented
can you share tutorial
zainulhasan commented
I was having this issue because I did not add "import com.someone.sendsms.SendSMSPackage; "
in MainApplication.java and <uses-permission android:name="android.permission.SEND_SMS" />
in AndroidManifest.xml.