react-native-container

1.0.6 • Public • Published

React Native Container

Simply an enhanced View component for lazy developers.

Layout

Row and Col

<Container col>
    <Container/>
    <Container/>
</Container>
<Container row>
    <Container/>
    <Container/>
</Container>

Size

<Container>
    <Container size={2}/>
    <Container size={3}/>
</Container>
<Container>
    <Container style={{height: 500}}/>
    <Container/>
</Container>

Nested

<Container row>
    <Container>
        <Container/>
        <Container/>
    </Container>

    <Container/>
</Container>

Align Children

Center

<Container center>
    <Container/>
</Container>
<Container center="horizontal">
    <Container/>
</Container>
<Container center="vertical">
    <Container/>
</Container>

Package Sidebar

Install

npm i react-native-container

Weekly Downloads

4

Version

1.0.6

License

MIT

Unpacked Size

18.6 kB

Total Files

7

Last publish

Collaborators

  • newbiebr