【问题标题】:React-Native: The subject line of email is same as the message contents using Share.shareReact-Native:电子邮件的主题行与使用 Share.share 的消息内容相同
【发布时间】:2020-11-24 10:20:47
【问题描述】:

这是我一直面临的一个非常奇怪的问题。我正在使用 Share.share,它将消息、主题(ios)和标题(对于 gmail)作为参数。在android中它工作正常。即主题行是“我是标题”,而邮件正文是“我是 groot”。但在 iOS 中,主题行始终与消息相同,如下图所示: 任何帮助都会非常感激。提前致谢。

onShare = async () => {
    try {
      await Share.share(
        {
          message: "I am groot",
          title: "I am the title",
        },
        {
          subject: "I am the subject line",
        }
      );
    } catch (error) {
      ...
    }
  };
  

【问题讨论】:

    标签: react-native


    【解决方案1】:

    当我从 react-native-share 导入 Share 时,它​​解决了我的问题,而不是从 react-native 导入 Share。

    【讨论】:

    • 我有同样的问题,但我已经从 react-native-share 导入... react-native-share 7.1.2 和 Share.open() 方法
    • 世博会不能做?
    猜你喜欢
    • 1970-01-01
    • 2017-07-21
    • 1970-01-01
    • 2021-02-06
    • 1970-01-01
    • 2022-12-21
    • 2012-04-28
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多