Skip to content
Advertisement

React Native Linking SMS

Now that RN supports Linking cross-platform, I am wondering how to send an SMS with a preset message. Per the docs (https://facebook.github.io/react-native/docs/linking.html#content):

Try to open the given url with any of the installed apps. You can use other URLs, like a location (e.g. “geo:37.484847,-122.148386”), a contact, or any other URL that can be opened with the installed apps.

My question is, what URI scheme do I follow to open an SMS with a predefined message? Is it cross-platform?

Thank you.

Advertisement

Answer

Have you considered and tried sms:number?body=yourMessage?

You can read up on it in RFC 5724.

Advertisement