A West Australian woman who allegedly squirted breast milk at a police officer has been denied bail in Fremantle Magistrate's Court.

Erica Leeder, 26, from Calista in Perth's south, was arrested on a warrant on Tuesday and taken to Rockingham police station.

It is alleged that while she was being strip-searched at the police station the 26-year-old grabbed her breast and squirted milk onto a female officer's forehead, arms and clothing.

Ms Leeder was charged with assaulting a public officer and denied bail by the magistrate because of a previous conviction for assaulting a police officer.

She has been remanded in custody until Tuesday and ordered to undergo a mental health assessment.