-
Notifications
You must be signed in to change notification settings - Fork 249
Description
seletedImages = [{"fileCopyUri": "content://com.android.externalstorage.documents/document/primary%3ADCIM%2FCamera%2F20210823_180553.jpg", "name": "20210823_180553.jpg", "size": 4844994, "type": "image/jpeg", "uri": "content://com.android.externalstorage.documents/document/primary%3ADCIM%2FCamera%2F20210823_180553.jpg"}]
Mailer.mail(
{
subject: selectedIndex == 0 ? 'Issue' : 'Suggestion',
recipients: [''],
body: deviceInfo,
customChooserTitle: 'This is my new title', // Android only (defaults to "Send Mail")
isHTML: true,
attachments: selectedImages,
},
(error, event) => {
Alert.alert(
error,
event,
[
{
text: 'Ok',
onPress: () => console.log('OK: Email Error Response'),
},
{
text: 'Cancel',
onPress: () => console.log('CANCEL: Email Error Response'),
},
],
{cancelable: true},
);
},
);