Android 对某些设备上的本地推送通知响应本机firebase RTL问题

Android 对某些设备上的本地推送通知响应本机firebase RTL问题,android,firebase,react-native,Android,Firebase,React Native,我正在尝试在我的RN应用程序中实现一个下载功能,该功能在下载开始时发送一个包含进度条的本地推送通知。当通知使用阿拉伯语时,如果启用进度条,标题和正文将保持左对齐,如中所示。这发生在三星设备android>=8上。它在Xaomi设备上正常工作。如果禁用进度条,则RTL将正确应用 以下是我的代码片段: const myNotification = new firebase.notifications.Notification({ show_in_foreground: true, }); myNot

我正在尝试在我的RN应用程序中实现一个下载功能,该功能在下载开始时发送一个包含进度条的本地推送通知。当通知使用阿拉伯语时,如果启用进度条,标题和正文将保持左对齐,如中所示。这发生在三星设备android>=8上。它在Xaomi设备上正常工作。如果禁用进度条,则RTL将正确应用

以下是我的代码片段:

const myNotification = new firebase.notifications.Notification({
show_in_foreground: true,
});
myNotification
.setNotificationId(notifId)
.setData(payloadData)
.setTitle(title)
.setSubtitle(fileSize)
.setBody(body)
.android.setProgress(totalSize, completedSize);
.android.setOngoing(true);
.android.setBigText(body, title, body)
.android.setChannelId(channelId) 
.android.setSmallIcon('notification') 
.android.setCategory(firebase.notifications.Android.Category.Progress)
.android.setVibrate([1000, 1000])
.android.setPriority(firebase.notifications.Android.Priority.Min)
.android.setOnlyAlertOnce(true);
firebase.notifications().displayNotification(myNotification);
如何将正文(阿拉伯语)设置为与启用的进度条右对齐?我遗漏了什么吗

环境

  • React本机版本:0.61.2
  • React本机firebase:5.5.6
  • 操作系统:安卓>=8.0.0