Skip to content

Share.shareSingle Instagram only opens AppStore, does not post to Instagram #1562

Closed
@lucksp

Description

@lucksp

Steps to reproduce

  1. Handle press action:
 const shareItem = async () => {
    const screenshot = await screenshotRef.current?.capture?.();

    await Share.shareSingle({
      backgroundImage: require('../../../assets/splash.png'),
      social: Social.InstagramStories,
      url: screenshot,
      type: 'image/png',
      appId: applicationId,
      title: 'Test Title',
    });
  };
  1. Watch AppStore open

Expected behavior

Based on documentation, I was under the impression that I can share directly to Instagram. The behavior would be:

  • on press of button in app, share menu opens or share to instagram menu opens
  • choose "share" button from menu and Instagram will open with Store or Post based on settings above.

Actual behavior

  • It opens the AppStore directly.
image

I am able to work around by using Share.open:

    await Share.open({
      // backgroundImage: require('../../../assets/splash.png'),
      // social: Social.InstagramStories,
      url: screenshot,
      type: 'image/png',
      // appId: applicationId || 'com.identafly.dev',
      title: 'Test Title',
    });
  };

Environment

    "expo": "^50.0.17",
    "expo-media-library": "~15.9.2",
    "react-native-share": "^10.2.1",
    "react-native-view-shot": "3.8.0",
    "react-native": "0.73.6",

react-native-share

Version: "^10.2.1"

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugstaleThere has been a lack of activity on this issue and it may be closed soon.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions