my baby also had same problem as she is newborn
apart from using medicine (eye drop) the other important thing is cleaning the eye dirt. wash your hand everytime before U touch the baby's eye , using the water (boiled) to clean and also use the cotton ball (已消毒) to clean
PS. 已消毒cotton ball can buy in 藥房 or 護協