Just looking for some advice!

Hi everyone just looking for some advise. My friend recently moved into her partners house with her child which her partner wasn’t fully moved into until she moved in. However things have taken a turn and now her Ex partner is kicking her out with her child. She’s been given two days to get everything out of the house with nowhere to go as she sold her previous home. She just wants to know if her ex partner legally has to provide her with an eviction notice or can she legally just kick her out with nowhere to go with a child? I just want to make it aware The child is only 3 years old and is settled into preschool within the area. Shes moved her whole life over for her ex partner and now has nowhere to go. Thanks