Skip to main content

Link external link component

This component exposes methods that allow calling other applications within the app. Such as sending text messages, making phone calls, sending emails, opening external links, and opening system settings.

Effect demonstration

1. Send email

<Button title="Send Email" onPress={() => Link.email('929483857@gmail.com')} />

2. Open system settings

<Button title="Open system settings" onPress={() => Link.settings()} />

3. Send SMS

<Button title="Send SMS" onPress={() => Link.sms('+8617681820821')} />

4. Make a phone call

<Button title="Call" onPress={() => Link.call('+8617681820821')} />

5. Open the URL

<Button title="Open URL" onPress={() => Link.url('https://codecanyon.net/user/brightteam/portfolio')} />

API

Link.email(email: string)

Link.settings()

Link.sms(phoneNumber: string)

Link.call(phoneNumber: string)

Link.url(url: string)