0

I am using react-native-share package for sharing the link on social media in my react native app.

When share.open() method calls , it's open the UI component and show the available app icon. I only see Instagram Chats icon. I want to share link on Instagram feed and stories but there is no option.

I don't want to used share.single() method for just one app because it's bad UX. Is there any solution for this? Thanks

if (Platform.OS === 'android') {
                shareOptions = {
                    message: 'share',
                    url: deepUrl,
                    appId: '12345678', //fb appID
                    type: 'images/*',
                    social: Share.Social.INSTAGRAM
                }
            } else {
                shareOptions = {
                    message: '',
                    url: deepUrl,
                    social: Share.Social.INSTAGRAM_STORIES,
                },

I have try to add social: Share.Social.INSTAGRAM object in shareOptions but no luck. I am sharing my code snippet.

Umer Nasar
  • 11
  • 4

0 Answers0