我正在使用以下方式在React Native中使用Share API。
在Android上,使用Twitter分享功能没有问题。但是在Facebook上,我无法看到分享的消息文本。
Twitter中有文本: Facebook中没有文本(只有URL):
handleSharePress() {
Share.share({
message: `I scored ${this.score}% in React Quiz: https://play.google.com/store/apps/details?id=com.vijayt.reactquiz`
}, {
dialogTitle: 'Share my score'
});
}
在Android上,使用Twitter分享功能没有问题。但是在Facebook上,我无法看到分享的消息文本。
Twitter中有文本: Facebook中没有文本(只有URL):