Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
deleteAsync = async () => {
try {
await Contacts.removeContactAsync(this.id);
this.props.navigation.goBack();
} catch ({ message }) {
// tslint:disable-next-line no-console
console.error(message);
}
}