Leg cramps

Tabatha
I'm 26 weeks pregnant starting to get bad leg cramps. I eat a lot of bananas and drink tons of water. Any recommendations how to prevent them, there soooooo painful!!