你应该首先在所有android/app/src/main/res/mipmap中添加新图标-*
请注意,在所有启动mipmap的文件夹中-*添加具有正确分辨率的同名新图标
然后在发送的通知对象中,可以添加其名称
{
largeIcon: "ic_launcher", // (optional) default: "ic_launcher"
smallIcon: "ic_notification", // (optional) default: "ic_notification" with fallback for "ic_launcher"
}
PushNotification.configure({
largeIcon: "ic_launcher",
smallIcon: "ic_notification",
})