The Harry Potter author is being criticized for comments she made about the trans community.