【发布时间】:2016-08-02 21:33:42
【问题描述】:
React Native FBSDK 有一个分享对话框,但由于某些原因在最近的更新中如果 iPhone 有 Facebook 应用程序,那么预填充的内容就像
const shareLinkContent = {
contentType: "link",
contentTitle: this.props.name,
contentUrl: this.props.link,
imageUrl: this.props.pictureUrl,
contentDescription: this.props.caption,
};
在安装应用程序时不起作用,但是当没有 FB 应用程序并且本机应用程序打开浏览器时,图像、描述和标题会显示。我想强制共享对话框每次都使用浏览器。我知道 RNFBSDK ShareDialog 有一个 setmode 函数,但是我找不到有关如何使用它的文档,也无法从 Objective-C 文档中推断出来。
【问题讨论】:
标签: ios reactjs react-native fbsdk react-native-fbsdk