O'Reilly logo

React Native Cookbook by Crysfel Villa, Stan Bershadskiy

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 {        //...        ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required