Skip to main content

Center

View used to centre its content.

Example
<Center align justify flexible>
<Text>This will be centered vertically and horizontally + flex is 1</Text>
</Center>

Props

align

A boolean value. Set this to true to add align-items: center style.

justify

A boolean value. Set this to true to add justify-content: center style.

flexible

A boolean value. Set this to true to add flex: 1 style.