Skip to content

tiaanduplessis/nanokit-container

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nanokit-container

Container component for React Native



Built with ❤︎ by tiaanduplessis and contributors

Table of Contents

Table of Contents
  • Install
  • Usage
  • Contribute
  • License
  • Install

    Greenkeeper badge

    $ npm install nanokit-container
    # OR
    $ yarn add nanokit-container

    Usage

    import {Text} from 'react-native'
    import Container from 'nanokit-container'
    
    const Foo = () => <Container />
    const Baz = () => <Container center backgroundColor="tomato"><Text>Hi</Text></Container>

    Props

    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

    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.

    License

    Licensed under the MIT License.

    About

    Container component for React Native

    Topics

    Resources

    License

    Stars

    Watchers

    Forks

    Packages

    No packages published