Send an Email or Make a Phone Call from Your React Native App

Tiempo de lectura: < 1 minuto

Reading time: < 1 minute

Today I’m going to show you how to send an email or make a phone call from React Native.

To use this function, we’ll import the Linking library from React Native: https://reactnative.dev/docs/linking

import { Linking } from "react-native";

To implement a phone call, we’ll use the same syntax as in HTML with the tel:phone_number scheme:

Linking.openURL(`tel:${phoneNumber}`)

And to send an email, we’ll use the mailto:email scheme:

Linking.openURL(`mailto:${email}`)

Leave a Comment