Which charger though? Isn't that the MacBook charger you got? If so, that would be much more capacity than a charger they would ship with an iPhone.
What is the max wattage an XR can draw?
I have the black Anker fast USB-C charger with a C to lighting cable. It was around $20.