And my point was that people, even in South Africa, don't just learn these things from whites. Xenophobia is a human traits. There are many tribes in South Africa with a history that includes conflict.
Yes, colonizers exploited those conflicts to seize power for themselves, much like they did in North America. But they were feeding off existing discord.