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

Unable to catch mail event in Android

Open Selvamhibiz opened this issue 7 years ago • 0 comments

I need to show an alert only if the user has sent email. If the user has cancelled or saved mail in drafts, then i should not show alert. When i use the below code, i can able to show alert in iOS as required based on 'event'.

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

But in Android, this callback itself is not getting called in all cases. Did anybody faced the same issue. Need solution to fix this issue.

Selvamhibiz avatar Jun 08 '18 06:06 Selvamhibiz