如何在本地反应式通知中添加操作按钮?

问题描述

我努力了几天,试图使用react-native-push-notification在react-native本地通知添加2个按钮。我一直关注https://github.com/zo0r/react-native-push-notification中的文档,但没有成功。通知已安排好,并在适当的时间收到,但是Android上没有按钮。这是我的代码

const notificationData = {
        title: name,message: `My notification message`,date: notificationDate,allowWhileIdle: true,priority: 'max',importance: 'max',showWhen: true,when: 0,vibration: 2000,type: 'serving',servingHour,actions: ['Yes','No'],};

PushNotification.localnotificationSchedule(notificationData);

我错过了什么还是做错了什么。任何帮助,将不胜感激。谢谢

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)