Recently the same thing happened with my son. He had a really bad fall and was shaken. For many days, he refused to cycle even to long distances and preferred to walk.
I kept on talking to him, assuring him that accidents don't happen always. He should start cycling for short distances to overcome his fear. He started doing so eventually.
Keep on encouraging your daughter!
Read more