That was a bad move from your boyfriend. What he did is sad. Not making an excuse for him, he couldve had a quick shock and was not prepared, give him A couple of days, he should regroup and if he doesn't than you know you can no longer Count on him. How old are both of you?
I am so sorry to hear this. Were you using protection? If you were not using protection then Im not sure why your BF would be so upset or shocked that you are pregnant. Even people who use contraceptives can end up having a baby. So, he should have been supportive.
How old are you both? Are there any reasons why he'd be so scared or unwilling to have a family?
Crying is expected and you will be doing a lot of that for a long time. You're in shock. His reaction was not what you hoped for. I hope you place more focus on this precious baby because he/she will need a healthy mommy. Crying a lot/depression could complicate your pregnancy. You need to be strong and realize that the baby is more important than the BF.
Do you have relatives?