mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-23 20:10:05 +08:00
Adds support for drawable resources to AndroidNotification
This commit is contained in:
@@ -387,7 +387,7 @@ public class DisplayNotificationTask extends AsyncTask<Void, Void, Void> {
|
||||
} else if (image.startsWith("file://")) {
|
||||
return BitmapFactory.decodeFile(image.replace("file://", ""));
|
||||
} else {
|
||||
int largeIconResId = RNFirebaseNotificationManager.getResourceId(context,"mipmap", image);
|
||||
int largeIconResId = getIcon(image);
|
||||
return BitmapFactory.decodeResource(context.getResources(), largeIconResId);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user