0.0.5 • Published 7 years ago

pp-checkbox-with-text v0.0.5

Weekly downloads
8
License
MIT
Repository
github
Last release
7 years ago

pp-checkbox-with-text

Screen

Just a component for react-native. It gives you a special chexbox with the text inside.

installation

npm install --save pp-checkbox-with-text

Properties

nametypedescriptiondefaultValue
textstringThe text which you want to see inside the checkboxDefault text for checkbox
checkedbooleanWhether checkbox is checked or nottrue
iconobjectObject which must contain the icon description
icon.namestringWhich icon name must be shown in the checkbox. You can get the name from MaterialIcons by Google, Inc. (v3.0.1, 932 icons)done
icon.colorstringWhich color this icon would be shown#524955

Methods

nametypedescriptiondefaultValue
onCheckfunctionwhich function would be invoked when somebody press the checkbox() => {}

Example

<Checkbox
    text="checkbox-test"
    checked={false}
    onCheck={()=>{console.log('click')}}
    icon={{name:'face'}}
/>

Contributing

These tools are still very early in development. So, feel free to make changes.

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago