Invoking an external iOS and Android application

The average iOS user has dozens of apps installed on their device. A substantial percentage of them is used on a daily basis. Many of the apps today incorporate sharing and integration with other applications. An example of this would be opening the iOS Maps application for a particular address found in the host application. We can accomplish the same with React Native.

In this recipe, we are going to explore how to switch applications and pass some context to them on iOS. We will be using the built-in Linking module and opening the Maps, Phone, and Safari browser applications.

How to do it...

  1. Open your index.ios.js file and add the Linking module to our import block:
            import {        //...        ...

Get React Native Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.