【发布时间】:2021-08-19 15:32:51
【问题描述】:
我想知道是否有人遇到过同样的问题。代码就是这样。
ShareDialog.canShow(shareLinkContent).then((canShow) => {
if (canShow) {
return ShareDialog.show(shareLinkContent);
}
}).then((result) => {
console.log(result) // this thing right here is a problem
});
该问题仅发生在发布模式/专门构建 iOS 中。 .通常,如果用户成功发布链接,则返回一个空对象{},而如果取消,则返回{isCancelled: true}。现在在 iOS 试飞中,甚至在导出的 ipa 中,所有内容都会返回 {isCancelled: true},即使您在 facebook 上成功分享了链接。
“反应原生”:“0.61.2”
"react-native-fbsdk-next": "4.3.0",
【问题讨论】:
标签: react-native react-native-fbsdk