Closed drewvolz closed 2 years ago
Pixel 6 does not open the email app when tapping:
From debugging I have experimented with:
react-native-community/email
@frogpond/openUrl
The email app will open when we pass our openUrl wrapper the following url
openUrl
mailto:${to}?cc=${cc}&bcc=${bcc}&subject=${subject}&body=${body}
If we did choose to go with our wrapper over RNC's, we should add more error checking and data sanitizing. Mainly making sure we call
encodeURIComponent().join(',')
encodeURIComponent()
We can avoid calling encodeURIComponent because Linking should automatically handle uri encoding for us.
encodeURIComponent
Linking
Pixel 6 does not open the email app when tapping:
From debugging I have experimented with:
react-native-community/email
with@frogpond/openUrl
.The email app will open when we pass our
openUrl
wrapper the following urlmailto:${to}?cc=${cc}&bcc=${bcc}&subject=${subject}&body=${body}
If we did choose to go with our wrapper over RNC's, we should add more error checking and data sanitizing. Mainly making sure we call
encodeURIComponent().join(',')
on to, cc, and bcc,encodeURIComponent()
on subject and body.