Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
deleteAlias = () => {
console.log("Deleting alias");
JPushModule.deleteAlias((map) => {
if (map.errorCode === 0) {
console.log("delete alias succeed");
} else {
console.log("delete alias failed, errorCode: " + map.errorCode);
}
})
}
deleteAlias() {
JPushModule.deleteAlias((result)=> {
Alert.alert(JSON.stringify(result))
})
}