Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const openSMS = (phonenos: Array, body?: string): Promise => {
return SMS.isAvailableAsync().then(isAvailable => {
if (!isAvailable) {
throw new Error('SMS not available')
}
return SMS.sendSMSAsync(phonenos, body || '')
})
}