I used to get them a lot. Gently stretching your toes upwards (towards your shin) when the cramp hits works wonders, also try a warm mustard oil massage before bed.
No need for fancy treatments. Just put a pillow under your feet while sleeping to improve blood flow, and drink a glass of warm milk at night for calcium.
My mother-in-law suggested a warm water soak with rock salt, which was very relaxing for my legs. But I still asked my doctor and she gave me calcium tablets to be safe.
My doctor told me leg cramps happen because baby absorbs our calcium and magnesium. She prescribed a safe supplement which worked like magic within days.
Oh god, those midnight calf cramps were like nightmare scenes! I used to scream and wake my husband up to stretch my feet. Honestly, drinking lots of water during the day helped me.
Leg cramps are very common, but if you have swelling, redness, or severe pain, please call your doctor. It could be deep vein issues, so don't ignore it.
Don't worry, this is very common in second and third trimester. Just ask your husband to gently massage your calves and never stretch your toes pointing downwards.