yeyintkoko / react-native-sms-x

Apache License 2.0
44 stars 33 forks source link

java.lang.Double cannot be cast to java.lang.String #18

Closed jairrc closed 4 years ago

jairrc commented 4 years ago

Hello! I am testing the component and using the suggested example, just changing my phone number. But, the error "java.lang.Double cannot be cast to java.lang.String" occurs. I looked for some solution on Google but I didn't find anything that I could apply to solve it in use with "react-native-sms-x". Can anybody help me?

This is my code: request(PERMISSIONS.ANDROID.SEND_SMS).then(result => { SendSMS.send( 123, '+55', 'Hey.., this is me!\nGood to see you. Have a nice day.', msg => { ToastAndroid.show(msg, ToastAndroid.SHORT); }, ); });

jairrc commented 4 years ago

The error is on "ToastAndroid.show(msg, ToastAndroid.SHORT);"

jasenkabalac commented 3 years ago

Hi, Can you please help ? I am having the same problem. How did you solve it ?