![](/img/trans.png)
[英]Is there any way to open the android/ios native share dialog from a webpage
[英]Can't open the share dialog in iOS with React Native
我正在使用React Native开发一个应用程序,我有以下代码:
Share.share({
title,
message: url,
url,
})
.then((a) => console.warn('', a)
.catch((e) => console.warn('error', e)));
这在Android中运行良好,但在iOS中,共享对话框会立即打开和关闭,同时我的应用程序保持冻结状态,就好像它正在等待共享对话框中的某些响应一样。
任何的想法? 找不到任何相关的问题。
这就是我正在使用的: https : //facebook.github.io/react-native/docs/share.html
我也试过ActionSheetIOS ,我得到了相同的行为。
显然,共享对话框无法在iOS中的模式上打开,或类似的东西。 我解决了这个问题,当模态关闭时发出一个事件,然后打开共享对话框。
这是问题: https : //github.com/facebook/react-native/issues/10471
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.