Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16750

How to get rid of app icons from appearing on Share?

$
0
0

How do i exclude the Instagram and iOS Messaging app icon from displaying in Share? I can't find the string to disable it in ExcludedActivityTypes

import { Share } from 'react-native' 
. 
.
.

const result = await Share.share(

      {
        message: 'Check it out',
        title: "hey",
        url: "www.image....."
      },
      {
        // iOS only:
        excludedActivityTypes: [
                                'com.apple.UIKit.activity.PostToTwitter',
                                'com.apple.UIKit.activity.PostToWeibo',
                                'com.apple.UIKit.activity.Print',
                                'com.apple.UIKit.activity.CopyToPasteboard',
                                'com.apple.UIKit.activity.AssignToContact',
                                'com.apple.UIKit.activity.SaveToCameraRoll',
                                'com.apple.UIKit.activity.AddToReadingList',
                                'com.apple.UIKit.activity.PostToFlickr',
                                'com.apple.UIKit.activity.PostToVimeo',
                                'com.apple.UIKit.activity.PostToTencentWeibo',
                                'com.apple.UIKit.activity.AirDrop',
                                'com.apple.UIKit.activity.OpenInIBooks',
                                'com.apple.UIKit.activity.MarkupAsPDF',
                                'com.apple.reminders.RemindersEditorExtension',
                                'com.apple.mobilenotes.SharingExtension',
                                'com.apple.mobileslideshow.StreamShareService',
                                'com.linkedin.LinkedIn.ShareExtension',
                                'pinterest.ShareExtension',
                                'com.google.GooglePlus.ShareExtension',
                                'com.tumblr.tumblr.Share-With-Tumblr',
                                'net.whatsapp.WhatsApp.ShareExtension',
                                'com.facebook.Facebook.ShareExtension',

                               ],
      },
    )

A bonus would also be to get rid of 'Save To Files' button

Thanks


Viewing all articles
Browse latest Browse all 16750

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>