Formation and quench of homonuclear and heteronuclear quantum droplets in one dimension