Linking apps with a button

Deep linking allows us to interact with incoming and outgoing links to and from other apps. By creating a deep link for your app, you can enable other apps to talk to it directly and pass arguments to it, if desired.

You can also access other apps' deep links, opening them with custom arguments. In this chapter, we will learn how to access other apps using their deep links.

We will create a Button component that, on press, finds out whether Facebook is installed on the user's device and if it is, launches the app and tells it to open the Notifications page. If Facebook is not installed, it will open the React Native documentation on the device's default browser.

It's important to note that you can call Linking as ...

Get React Native By Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.