Darwin developed his ideas without the advantage of our modern understanding of genes and inheritance. The works of several scientists are credited with integrating evolutionary theory with genetics.
This chapter (pages 325 to 346) of Bowker's book, "Evolution: the history of an idea" provides a summary of the synthesis of genetic knowledge into the theory of evolution.