【发布时间】:2026-01-13 17:00:01
【问题描述】:
我正在尝试分享来自我的 react-native iOS 应用的链接。但是当我点击分享按钮时,我的应用程序变得无响应。
我尝试使用下面提到的两个代码,但没有任何效果 -
Share.share({
message:
this.props.app_urls.share + "\n" + this.props.app_urls.link_download
});
或
Share.share({
message:
this.props.app_urls.share,
url : this.props.app_urls.link_download
});
相同的代码在 android 中运行良好,但在 iOS 中却不适用。 我该怎么做才能让它发挥作用?
【问题讨论】:
-
能否请您提供任何错误日志
-
Xcode 中不存在错误日志...应用程序停止工作。我需要杀死该应用程序才能再次运行它
-
尝试使用react-native-share,我用过没有任何问题。
标签: ios iphone react-native react-native-ios sharing