You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yup, here are the steps and code I used to use the library:
install the package
yarn add react-native-sms-sender
add a Button or TouchableOpacity to trigger the library's method
import{View,Button}from'react-native'functionApp(){asyncfunctionhandleSendSMS(){console.log('handleSendSMS called...')awaitSendSMS.send({body: 'The default body of the SMS!',recipients: ['+919988776655'],// sample phone})}return(<View><Buttontitle="Send SMS"onPress={handleSendSMS}/></View>)}exportdefaultApp
When I press the button, the message "handleSendSMS called..." gets logged to the console, but no SMS is sent. I used the React Native CLI to bootstrap the project.
No Permissions pop-up showed up as well.
It is not working nor giving me any error
The text was updated successfully, but these errors were encountered: