Africa as a whole includes very rich agricultural areas. Some countries like Namibia are not overly blessed with the best lands for cultivation. Still, one should not think of Africa as unable to generate its own food surpluses. As always, African governments that push “land reform” and the expropriation of successful farms are not doing any favors for agricultural production.
There is an interesting article in the most recent Nstional Geographic regarding probable population trends. A segment on Nigeria which is expected to be more populous than the US before many decades speaks of problems in northern Nigeria for larger farmers. Covid has caused an increase in banditry, and successful farmers are being robbed and reducing their business activity. A good way to starve a country in the long run. India soon will have more population than China, Nigeria will be third, and the US fourth before long.