Modern electronic components use materials that don't support fire, nor do the printed circuit boards. If a component fails and burns out, then there may be localised charing of the printed circuit and surrounding components, but any localised fire would self extinguish. Also, the avionics boxes are metal, often diecastings, so any internal fire would be contained. If there was a fire around the avionics systems, then it must have had an external cause...