He who says he is in the light and hates his brother, is in the darkness even until now.
However it is likely that John was speaking of hatred in a comparative sense, as Jesus sometimes did (Matthew 6:24; Matthew 24:10; Luke 14:26; Luke 16:13). Hyperbolically, to fail to show love is to demonstrate hate.