I don't drink beer while hiking, usually if I am going to drink beer it is when we stop to set up camp. I like something easy drinking. And since I'm "roughing it" I tend to stay away from fancy beers. If SPAM tastes like filet mignon after a 12 mile day with 35 - 40 lbs on my back then Miller High Life in the can tastes like pure gold as well. Though, I admit, last couple times I went I took SNPA and now am eyeing Mammas Yella Pils from OB.
The other thing I have done is fill plastic bottles with my beer. This works fine though I've had it leak on occasion. Las time I went on an overnighter canoe trip I took a plastic water jug growler of my IPA and that was awesom.
And of course, I only ever take two beers because they are heavy. So if it is a twi nighter I have beer on the first night and the second night I just wish for beer. Always have whiskey though.