Twitter使用react-naive-share库(https://github.com/react-native-community/react-native-share)在多个共享中共享

时间:2018-10-25 08:03:02

标签: react-native twitter

我正在使用此https://github.com/react-native-community/react-native-share库来实现共享,但是在多共享选项中,它在共享尝试中未显示twitter。我正在共享base64图像。以下是我的共享代码-

..some/path/status?someId=123456#RandomStuff

1 个答案:

答案 0 :(得分:0)

通过关注解决了此问题

//for more than one base64 image 
const shareOptions = {
  title: 'Title',
  message: 'Message',
  urls: reviewShare.state.blobArr
};

// when only one base64 image
shareOptions = {
    title: 'Title',
    message: 'Message',
    url: reviewShare.state.blobArr[0],
  };