A
AstraWind
v0.2.0
System
Flexbox & Grid

flex

Utilities for controlling how flex items both grow and shrink.

Quick reference

Every class applies on React Native
Class
Styles
React Native
flex-1
flex: 1;
flexGrow: 1 flexShrink: 1 flexBasis: 0%
flex-2
flex: 2;
flexGrow: 2 flexShrink: 1 flexBasis: 0%
flex-3
flex: 3;
flexGrow: 3 flexShrink: 1 flexBasis: 0%
flex-4
flex: 4;
flexGrow: 4 flexShrink: 1 flexBasis: 0%
flex-5
flex: 5;
flexGrow: 5 flexShrink: 1 flexBasis: 0%
flex-6
flex: 6;
flexGrow: 6 flexShrink: 1 flexBasis: 0%
flex-7
flex: 7;
flexGrow: 7 flexShrink: 1 flexBasis: 0%
flex-8
flex: 8;
flexGrow: 8 flexShrink: 1 flexBasis: 0%
flex-9
flex: 9;
flexGrow: 9 flexShrink: 1 flexBasis: 0%
flex-10
flex: 10;
flexGrow: 10 flexShrink: 1 flexBasis: 0%
flex-11
flex: 11;
flexGrow: 11 flexShrink: 1 flexBasis: 0%
flex-12
flex: 12;
flexGrow: 12 flexShrink: 1 flexBasis: 0%
Show all 41 classes
The React Native column is what AstraWind resolves each class to, computed live on this page with the current color scheme. Classes with no native equivalent are accepted without effect, and AstraWind warns about them in development. See Compatibility.