Adding a Lightning Component to the Salesforce mobile navigation

To add Lightning Components to the Salesforce mobile application navigation, you need to make sure that Lightning Component implements the force:appHostable interface:

<aura:component implements="force:appHostable">

Let's add the YouTube search component we created to the Salesforce mobile application navigation menu. To do this, let's deploy the Lightning Component by using SFDX commands to push source code from the git repository at https://github.com/PacktPublishing/Learning-Salesforce-Lightning-Application-Development/tree/master/chapter12 to the scratch Org, as shown in the following code snippet:

# Authenticate to Dev Hub sfdx force:auth:web:login -d -a DevHub # Set as ...

Get Learning Salesforce Lightning Application Development 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.