The following are the instructions:
- Start a blank project (for example, LinkSocialShare), as follows, and go to that folder:
$ ionic start LinkSocialShare blank $ cd LinkSocialShare
- Add the social sharing plugin and Ionic Native wrapper for the plugin with the following command line:
$ ionic plugin add cordova-plugin-x-socialsharing $ npm install --save @ionic-native/social-sharing
- Open ./src/pages/home/home.html and replace its contents with the following code:
<ion-header> <ion-navbar> <ion-title> Home </ion-title> </ion-navbar></ion-header><ion-content> <ion-card> <ion-item> <h2 #messageSubject>Ionic Developer</h2> <p>May 5, 2016</p> </ion-item> <img src="https://source.unsplash.com/category/technology/600x390">