https://github.com/tiaanduplessis/nanokit-container
Container component for React Native
https://github.com/tiaanduplessis/nanokit-container
component container react react-naitve
Last synced: 10 months ago
JSON representation
Container component for React Native
- Host: GitHub
- URL: https://github.com/tiaanduplessis/nanokit-container
- Owner: tiaanduplessis
- License: mit
- Created: 2017-10-18T15:15:01.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-06-02T22:52:18.000Z (about 7 years ago)
- Last Synced: 2025-07-24T09:26:25.202Z (11 months ago)
- Topics: component, container, react, react-naitve
- Language: JavaScript
- Size: 33.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
nanokit-container
Container component for React Native
Table of Contents
Table of Contents
## Install
[](https://greenkeeper.io/)
```sh
$ npm install nanokit-container
# OR
$ yarn add nanokit-container
```
## Usage
```js
import {Text} from 'react-native'
import Container from 'nanokit-container'
const Foo = () =>
const Baz = () => Hi
```
## Props
In addition to the [`View PropTypes`](https://facebook.github.io/react-native/docs/view.html), 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
## Contributing
Contributions are welcome!
1. Fork it.
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D
Or open up [a issue](https://github.com/tiaanduplessis/nanokit-container/issues).
## License
Licensed under the MIT License.