I have a share button. On press of this button I called a function. That function basically creates a screen view pdf, and now I am storing that pdf in my state (means that pdf path). After that I am calling mail linking function. And by pressing share option I want to share that pdf file to that mail. It means, I want to append that pdf automatically in mail body.
Here's what I have tried, but this just adds a file path in mail body (not an actual file):
Linking.openURL(
`mailto:[email protected]?subject=SendMail&body=${this.state.pdf}`
);
You can't add an attachment using a mailto link. Sorry.
You could put a link to the file in the mail body.