Layout Props
Props
marginHorizontal
alignItems
borderBottomWidth
borderLeftWidth
borderRightWidth
borderTopWidth
borderWidth
bottom
flex
flexDirection
flexWrap
height
justifyContent
left
margin
marginBottom
alignSelf
marginLeft
marginRight
marginTop
marginVertical
padding
paddingBottom
paddingHorizontal
paddingLeft
paddingRight
paddingTop
paddingVertical
position
right
top
width
Reference
Props
marginHorizontal
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 |
alignSelf
Type | Required |
---|---|
enum('auto', 'flex-start', 'flex-end', 'center', 'stretch') | No |
marginLeft
Type | Required |
---|---|
number | No |
marginRight
Type | Required |
---|---|
number | No |
marginTop
Type | Required |
---|---|
number | No |
marginVertical
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 |