Jobeso / react-native-story-share

Share your images to instagram and snapchat stories with react native.
107 stars 54 forks source link

how to just share link by ins #41

Closed ytt123 closed 3 years ago

franznkemaka commented 3 years ago

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.

ytt123 commented 3 years ago

I will try it. anyway,thanks.------------------ 原始邮件 ------------------ 发件人: "Franz&nbsp;Nkemaka"<notifications@github.com> 发送时间: 2020年9月20日(星期天) 晚上8:57 收件人: "Jobeso/react-native-story-share"<react-native-story-share@noreply.github.com>; 抄送: "杨涛涛"<1185883606@qq.com>;"Mention"<mention@noreply.github.com>; 主题: Re: [Jobeso/react-native-story-share] how to just share link by ins (#41)

franznkemaka commented 3 years ago

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