react-native-share / react-native-share

Social share, sending simple data to other apps.

Home Page:https://react-native-share.github.io/react-native-share

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

shareSingle does not work with multiple emails on iOS

leonardohenriquedev opened this issue · comments

    Share.shareSingle({
      social: Share.Social.EMAIL,
      email: "issue@gmail.com,multipleEmails@hotmail.com",
      subject: `Subject..`,
      message: `Message..`,
    }).catch((err) => console.log(err));

Works fine on Android
WhatsApp Image 2023-11-28 at 11 19 28

But does not work on iOS
MicrosoftTeams-image (3)

  • React Native version: 0.71.13
  • Android version: 13
  • iOS version: 16.7.2

2023-11-28 11:19:33.507402-0300 MyApp[4476:1238875] email
2023-11-28 11:19:33.507768-0300 MyApp[4476:1238875] TRY OPEN email
2023-11-28 11:19:33.507981-0300 MyApp[4476:1238875] Try open view
2023-11-28 11:19:33.517072-0300 MyApp[4476:1238875] [MFMailComposeViewController] issue@gmail.com,multipleEmails@hotmail.com is not a valid email address.

Raised a fix for your use case. #1495