How to send a text message from your Expo app, in short
Install expo-sms, ask the device whether it can send texts with SMS.isAvailableAsync, then call SMS.sendSMSAsync with one or more phone numbers and the message body. The phone opens its own text composer with everything filled in, the user can edit it, and the user taps send. That is the whole flow, and it works on both iOS and Android.
This is the right tool for user-initiated texts: an Invite a Friend button, Text This to Someone on a recipe or a listing, a Share My Location link to a partner, or a Running Late message to a client. It is the wrong tool for anything the user should not have to approve, like login codes or appointment reminders. Those come from a server, and the last section covers why.
expo-sms at a glance
| Question | Answer |
|---|---|
| Install | npx expo install expo-sms |
| Works in Expo Go? | Yes |
| Permission prompt? | No, the user approves each message in the composer |
| Config plugin? | No |
| Works in the iOS simulator? | No, isAvailableAsync always returns false there |
| Can it send without the user tapping send? | No |
Step 1: Install expo-sms
Run npx expo install expo-sms in your project. Using expo install instead of plain npm install picks the version that matches your SDK, which on SDK 58 is the 58.0.x line. The module is in Expo Go, so you can try it on a real phone right away without a new [development build](/blog/expo-go-vs-development-build).
There is nothing to add to app.json and no permission string to write. That is the big difference from [contacts](/blog/how-to-access-contacts-in-your-expo-app) or the camera: your app never reads anything and never sends anything on its own, it just hands a draft to the system.
Step 2: Check that the device can send texts
Call await SMS.isAvailableAsync() before you show a Text button. It resolves to true or false. It is false in the iOS simulator and on the web, and it can be false on a real device that is not set up to send messages.
Our take: check once when the screen mounts and hide or swap the button when it is false, instead of letting the user tap it and get an error. A good fallback is the [share sheet](/blog/how-to-add-a-share-sheet-to-your-expo-app), which still lets them send the same text through any messaging app they have.
Step 3: Open the composer with sendSMSAsync
The call is SMS.sendSMSAsync(addresses, message, options). addresses is a single phone number string or an array of them, message is the body text, and options is optional and only used for attachments. For an invite flow it looks like: const { result } = await SMS.sendSMSAsync([phone], 'Join me on Habitly: https://example.com/invite/abc123').
- Pass numbers as plain strings. You can pass an empty array and let the user pick a recipient inside the composer.
- Several numbers in the array all appear as recipients of the same prepared message. If you want separate one-to-one texts, open the composer once per person.
- Keep the message short and include a link. It is a text, so the user will read the first line and nothing else.
- Pair it with expo-contacts if you want an in-app picker, but you do not need it: the composer has its own recipient field.
Step 4: Read the result honestly
sendSMSAsync resolves with an object whose result is one of three values. On iOS you get cancelled if the user backed out, or sent if they sent or scheduled it. On Android the system does not report what happened, so the result is always unknown. Any device can return unknown when the status cannot be determined.
What the result means
| result | When you see it | What you should do |
|---|---|---|
| sent | iOS, the user tapped send | Show a thank-you, but do not treat it as delivered |
| cancelled | iOS, the user closed the composer | Do nothing, no error message |
| unknown | Always on Android, sometimes elsewhere | Assume nothing, keep the UI neutral |
Sent only means the message was handed to the Messages app. It does not mean it was delivered, and the module does not check what the user actually sent or to whom, because the user can edit both before sending. So never unlock a referral reward or mark an invite as done from this value alone. Reward the invite when the friend actually signs up with the link.
Step 5: Attach an image or file
To attach a file, pass options.attachments with a single object or an array, each with uri, mimeType and filename. The uri has to be a content URI that other apps can open, not a raw path inside your app's sandbox.
This is where AI-written code often breaks on SDK 58. Older examples call FileSystem.getContentUriAsync, which is now deprecated in expo-file-system and throws at runtime unless you import it from expo-file-system/legacy. In the current class-based API you create a File, for example new File(Paths.cache, 'receipt.pdf'), and read its contentUri property on Android. That pairs well with a [PDF you generate in the app](/blog/how-to-generate-a-pdf-in-your-expo-app).
Our take: test attachments on both platforms before you promise them in your UI, and if a feature depends on sending a file, the share sheet or [email](/blog/how-to-send-email-from-your-expo-app) is usually the more predictable path. Use SMS attachments for a nice-to-have, like an image with an invite.
When to use a backend instead of expo-sms
expo-sms always shows the composer and always needs the user's tap. If the user should not see or approve the message, it is the wrong tool. Login codes, booking reminders, order updates and alerts to staff all need to come from your server through an SMS provider's API.
There is also a lighter alternative to expo-sms: opening an sms: link with Linking.openURL hands off to the Messages app directly. It is fine for a plain Text Us link on a contact screen, but you lose the availability check, attachments and the sent or cancelled result, so for anything inside a flow, expo-sms is the better choice.
Have Claude Code build it for you
Open your project in the Claude Code desktop app and be specific. Left alone, AI-written SMS code tends to skip the availability check, treat sent as delivered, or use the deprecated getContentUriAsync. A prompt that avoids all three:
Then add a line to your [CLAUDE.md](/blog/claude-md-for-expo-apps) such as "SMS: expo-sms only for user-initiated texts; server-side SMS goes through our authenticated, rate-limited endpoint" so a later session keeps the rule.
The short version
To send a text message from your Expo app: install expo-sms, check SMS.isAvailableAsync, and call SMS.sendSMSAsync with the numbers and the message. The user approves every text, the result is a hint rather than a delivery receipt, attachments need a content URI from the new File API, and anything the user should not approve belongs on a protected backend.
If you are building your first iOS app with Claude Code and Expo and want feedback on it before App Review, bring it to App Store Launch Club. Members share their builds and help each other get unstuck, and the [curriculum](/curriculum) covers the full path from first build to first users. If you are adding more native features, our guides to [sending email](/blog/how-to-send-email-from-your-expo-app) and [contacts](/blog/how-to-access-contacts-in-your-expo-app) follow the same pattern. Join at applaunchclub.co for $9 a month.
Short, practical drops on app ideas, validating fast, store listings, and passing app review. No spam, unsubscribe anytime.
Frequently asked questions
How do I send an SMS from an Expo app?
Install expo-sms with npx expo install expo-sms, check SMS.isAvailableAsync, then call SMS.sendSMSAsync with an array of phone numbers and the message text. The system opens a prefilled text composer and the user taps send.
Can an Expo app send a text message without the user tapping send?
No. expo-sms opens the system composer and the user decides whether to send. For texts the user should not approve, like login codes or reminders, send from your own server through an SMS provider, behind authentication and rate limits.
Why does SMS.isAvailableAsync return false?
It always returns false in the iOS simulator and in the browser. On a real device it returns false when the device is not set up to send messages. Test on a real phone and hide or replace the button when it is false.
Why is the sendSMSAsync result always unknown on Android?
Android does not report what happened in the messaging app, so expo-sms always resolves with result unknown there. On iOS you get sent or cancelled. Never use the result as proof that a message was delivered.
Does expo-sms work in Expo Go?
Yes, expo-sms is included in Expo Go and needs no config plugin or permission, so you can test it on a real phone right away. It will not open a composer in the iOS simulator.
How do I attach an image to a text with expo-sms?
Pass options.attachments with uri, mimeType and filename. The uri must be a content URI other apps can read. On SDK 58, create a File with the class-based expo-file-system API and use its contentUri on Android, since getContentUriAsync is deprecated and throws at runtime.
Last reviewed by David on November 2, 2026

