Jobeso/react-native-story-share

how to just share link by ins

ytt123 opened this issue · 3 comments

how to just share link by ins

Hi @ytt123,

I guess you want to only share a link on Instagram right?
Then react-native-share is what you actually need.

const shareOptions = {
    title: 'Share via',
    message: 'some message',
    url: 'some share url',
    social: Share.Social.INSTAGRAM,
    filename: 'test' , // only for base64 file in Android
  };

  Share.shareSingle(shareOptions)
    .then((res) => { console.log(res) })
    .catch((err) => { err && console.log(err); });

borrowed from their documentation here.

hope that is what you wanted.

You're welcome, if it works, please don't hesitate to close the issue.