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

Handling being invoked by external Android application

Earlier in this chapter, we discussed the benefits of making our application available to other apps to increase usage in the Handle being invoked by external iOS application recipe. It is only fitting that we do not leave Android behind and show you how to accomplish deep linking in this recipe.

How to do it...

  1. Open your React Native Android project in Android Studio and open AndroidManifest.xml.
  2. For our example, we will register our application under the invoked:// scheme. Change your <activity> node to the following:
            <activity        android:name=".MainActivity"         android:launchMode="singleTask"        android:label="@string/app_name"         android:configChanges="keyboard|keyboardHidden| ...

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