Context. The neutral interstellar medium of galaxies acts as a reservoir to fuel star formation. The dominant heating and cooling mechanisms in this phase are uncertain in extremely metal-poor star-forming galaxies. The low dust-to-gas mass ratio and low polycyclic aromatic hydrocarbon abundance in such objects suggest that the traditional photoelectric effect heating may not be effective. Aims. Our objective is to identify the dominant thermal mechanisms in one such galaxy, I Zw 18 (1/30 Z ), assess the diagnostic value of fine-structure cooling lines, and estimate the molecular gas content. Even though molecular gas is an important catalyst and tracer of star formation, constraints on the molecular gas mass remain elusive in the most metal-poor galaxies.Methods. Building on a previous photoionization model describing the giant H ii region of I Zw 18-NW within a multi-sector topology, we provide additional constraints using, in particular, the [ Results. The heating of the H i region appears to be mainly due to photoionization by radiation from a bright X-ray binary source, while the photoelectric effect is negligible. Significant cosmic ray heating is not excluded. Inasmuch as X-ray heating dominates in the H i gas, the infrared fine-structure lines provide an average X-ray luminosity of order 4 × 10 metal-rich sources (∼1%), it cannot be safely used as a photoelectric heating efficiency proxy. This ratio seems to be kept stable owing to a correlation between the X-ray luminosity and the star formation rate. Conclusions. X-ray heating could be an important process in extremely metal-poor sources. The lack of photoelectric heating due to the low dust-to-gas ratio tends to be compensated for by the larger occurrence and power of X-ray binaries in low-metallicity galaxies. We speculate that X-ray heating may quench star formation.