React native “世博会”;scheduleLocalNotificationAsync“;图标不变

React native “世博会”;scheduleLocalNotificationAsync“;图标不变,react-native,notifications,expo,React Native,Notifications,Expo,您好,我正在尝试为本地通知(scheduleLocalNotificationAsync(localNotification,schedulingOptions))设置一个图标,该图标将在一定时间后显示。但是,每当我设置图标并触发通知时。默认的世博会图标将始终显示在通知上,而不是我设置的图标。 以下是安排通知的代码: const localNotification = { title: item.name, body: 'Your ' + item.name + ' T

您好,我正在尝试为本地通知(
scheduleLocalNotificationAsync(localNotification,schedulingOptions)
)设置一个图标,该图标将在一定时间后显示。但是,每当我设置图标并触发通知时。默认的世博会图标将始终显示在通知上,而不是我设置的图标。

以下是安排通知的代码:

const localNotification = {
      title: item.name,
      body: 'Your ' + item.name + ' Tree is Ready',
      icon: "../../assets/img_acorn_tree.png",
      ios: {
        sound: true
      },
      android:
      {
        sound: true,
        priority:'high',
        icon: "../../assets/img_acorn_tree.png",
        sticky: false,
        vibrate: true
      }
    };

    let t = new Date();
    t.setSeconds(t.getSeconds() + 10);
    const schedulingOptions = {
      time: t,
    };

    const id = Notifications.scheduleLocalNotificationAsync(localNotification, schedulingOptions)
如您所见,我在创建通知时尝试分配图标

我还尝试更改app.json文件中的图标

  "expo": {
    ...
    ],
    "notification": {
      "icon":"./assets/img_acorn_tree.png"
    },
    ...
}

还有没有办法将通知的主标题从“Expo”更改为其他内容

非常感谢您的反馈

谢谢