Pinkeye that's caused by bacteria can spread to others as soon as symptoms appear and for as long as there's discharge from the eye — or until 24 hours after antibiotics are started. Conjunctivitis that's caused by a virus is generally contagious before symptoms appear and can remain so as long as the symptoms last.