Fix flexible box model for Android < 4.4 and iOS < 7.0