Stomach pains after having stomach virus

Hi all! So for the past week I was stuck having the stomach virus. I would do diarrhea that would be all water every day, couldn’t eat anything, wasn’t hungry, was nauseous. Friday I took some medication and it stopped all the diarrhea and it helped me feel better. I have also been drinking juices that could help me get all the vitamins and stuff that I lost all that week. I’ve started feeling better. I’m hungry now, not nauseous to food smell and don’t go to the bathroom like before. However, now I’m trying to eat little by little again to gain weight because I lost weight due to this but after I eat, my stomach hurts. Idk if I should be worried about this. Idk if something could be wrong or if it’ll leave soon. Has this happened to anyone else?