Container component for React Native
Built with ❤︎ by tiaanduplessis and contributors
$ npm install nanokit-container
# OR
$ yarn add nanokit-container
import {Text} from 'react-native'
import Container from 'nanokit-container'
const Foo = () => <Container />
const Baz = () => <Container center backgroundColor="tomato"><Text>Hi</Text></Container>
In addition to the View PropTypes
, some useful shorthand properties are provided:
Property | Description | Default Value |
---|---|---|
center |
Center children | |
padding |
Add padding to the View | 0 |
backgroundColor |
Set the background color of the View | #fff |
Contributions are welcome!
- Fork it.
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Or open up a issue.
Licensed under the MIT License.