If your baby’s healthcare provider determines that bacteria has caused the pinkeye, she may prescribe antibiotic eye drops or an ointment.