Skip to content

Instagram Story share adds unwanted link #1590

@XEmAX32

Description

@XEmAX32

Steps to reproduce

following is the code I'm running, just taking a component with captureRef from "react-native-view-shot" and sending it to IG stories.

const onPress = () => {
    captureRef(ref, {
      result: "tmpfile",
      quality: 1,
      format: "png",
    })
      .then(async (res) => {
        Share.shareSingle({
          stickerImage: res,
          social: Share.Social.INSTAGRAM_STORIES,
          appId: "[...]",
          type: 'image/*'
        });
      })
      .catch((err) => console.error(err));
  };

Expected behavior

not have the blank link

Actual behavior

sharing is working great but I'm seeing an unwanted blank link attached to the IG story
this is happening both in dev (connected to metro) and preview (internal release) mode

IMG_F5DC2548FEAD-1

Environment

iOS: 18.0
react native 0.74.5
expo: 51.0.28
typescript: 5.3.3

react-native-share

react-native-share: 11.0.3 (same problem with latest version))

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