title: Migrating to Ionic 5 from Ionic 3 operator .then shows error
body: <p>Hello I am trying to migrate my project from Ionic 3 to Ionic 5.</p>
  <p>I have a function for social sharing and the operator <strong>.then()</strong> is redlighted</p>
  <blockquote>
  <p>Property then does not exit on type void</p>
  </blockquote>
  <p>this is a function</p>
  <pre><code>shareMedia()
  {
    this.socialSharing.share(this.title, '', 'https://example.com/api/api/uploads/' + this.image_path, 'https://example.com')
      .then(()=&gt;{
      }).catch(()=&gt;{
  
      });
  }
  </code></pre>
  <p>any help?</p>