It reacts with water to make ammonia and sodium hydroxide . It burns in air to make oxides of sodium and nitrogen , such as nitrogen dioxide . Sodium amide reacts violently with water to produce ammonia and sodium hydroxide and will burn in air to give oxides of sodium and nitrogen .