react-native-mail icon indicating copy to clipboard operation
react-native-mail copied to clipboard

Attachment Images is not working give uri permission error

Open birjubhatt opened this issue 3 years ago • 0 comments

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}, ); }, );

Screenshot_20211020-142139_FileConverter

birjubhatt avatar Oct 20 '21 10:10 birjubhatt