Layout Props
Props
marginRight
alignItems
borderBottomWidth
borderLeftWidth
borderRightWidth
borderTopWidth
borderWidth
bottom
flex
flexDirection
flexWrap
height
justifyContent
left
margin
marginBottom
marginHorizontal
marginLeft
alignSelf
marginTop
marginVertical
maxHeight
maxWidth
minHeight
minWidth
padding
paddingBottom
paddingHorizontal
paddingLeft
paddingRight
paddingTop
paddingVertical
position
right
top
width
Reference
Props
marginRight
Type | Required |
---|---|
number | No |
alignItems
Type | Required |
---|---|
enum('flex-start', 'flex-end', 'center', 'stretch') | No |
borderBottomWidth
Type | Required |
---|---|
number | No |
borderLeftWidth
Type | Required |
---|---|
number | No |
borderRightWidth
Type | Required |
---|---|
number | No |
borderTopWidth
Type | Required |
---|---|
number | No |
borderWidth
Type | Required |
---|---|
number | No |
bottom
Type | Required |
---|---|
number | No |
flex
Type | Required |
---|---|
number | No |
flexDirection
Type | Required |
---|---|
enum('row', 'column') | No |
flexWrap
Type | Required |
---|---|
enum('wrap', 'nowrap') | No |
height
Type | Required |
---|---|
number | No |
justifyContent
Type | Required |
---|---|
enum('flex-start', 'flex-end', 'center', 'space-between', 'space-around') | No |
left
Type | Required |
---|---|
number | No |
margin
Type | Required |
---|---|
number | No |
marginBottom
Type | Required |
---|---|
number | No |
marginHorizontal
Type | Required |
---|---|
number | No |
marginLeft
Type | Required |
---|---|
number | No |
alignSelf
Type | Required |
---|---|
enum('auto', 'flex-start', 'flex-end', 'center', 'stretch') | No |
marginTop
Type | Required |
---|---|
number | No |
marginVertical
Type | Required |
---|---|
number | No |
maxHeight
Type | Required |
---|---|
number | No |
maxWidth
Type | Required |
---|---|
number | No |
minHeight
Type | Required |
---|---|
number | No |
minWidth
Type | Required |
---|---|
number | No |
padding
Type | Required |
---|---|
number | No |
paddingBottom
Type | Required |
---|---|
number | No |
paddingHorizontal
Type | Required |
---|---|
number | No |
paddingLeft
Type | Required |
---|---|
number | No |
paddingRight
Type | Required |
---|---|
number | No |
paddingTop
Type | Required |
---|---|
number | No |
paddingVertical
Type | Required |
---|---|
number | No |
position
Type | Required |
---|---|
enum('absolute', 'relative') | No |
right
Type | Required |
---|---|
number | No |
top
Type | Required |
---|---|
number | No |
width
Type | Required |
---|---|
number | No |