1.0.6 • Published 8 years ago

react-native-item-checkbox v1.0.6

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

react-native-item-checkbox

Create your own item checkbox with custom colors.

Getting started

npm i react-native-item-checkbox

!IMPORTANT only works with react-native-vector-items now Don't forget to run rnpm link

Basic usage

Options

Optiondefault valuevalues
onCheck (PropTypes.func)function that alerts 'implement me'callback function
onUncheck (PropTypes.func)function that alerts 'implement me'callback function
icon (PropTypes.String)'check'any FontAwesome icon you find here
size (PropTypes.number)18the size of your checkbox button
backgroundColor (PropTypes.String)'grey'colors
color (PropTypes.String)'white'colors
iconSize (PropTypes.String)'normal'{'small', 'normal', 'large'}
checked (PropTypes.bool)false{true, false} (calles onCheck or onUncheck)
default (PropTypes.bool)false{true, false} (doesn't call onCheck or onUncheck)
style (PropTypes.func)nullcustom style

Examples

var ItemCheckbox = require('react-native-item-checkbox');

// inside your render function
<ItemCheckbox /> // 

Gif

// ...
_onCheckCallback: function() {
  alert('checked');
},
// ...
<ItemCheckbox //example with callbacks
  onCheck={this._onCheckCallback}
/>
<ItemCheckbox //example with icon settings
  color="#FF9999"
  icon="tree"
  iconSize="normal" //"small", "normal", "large"
  size={100}
/>

Gif

iconSize

Gif

iconSize={"small", "normal", "large"}

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.1.1

9 years ago

0.1.0

9 years ago