0.0.6 • Published 7 years ago

react-native-checkbox-list v0.0.6

Weekly downloads
10
License
MIT
Repository
-
Last release
7 years ago

Install

  $ npm i react-native-checkbox-list --save

Usage

  import { ListOfCheckbox } from'react-native-checkbox-list';  
...
<ListOfCheckbox  arrayCheckbox={[ 
  { 
    image: require('./some-image-forCheck.png'), 
    label: 'CheckOne',
    labelLeft: true, 
    value: 'checkOne', 
    styleCheckbox: {width: 30,height: 30,borderWidth: 2,borderColor: '#000'},
    styleLabel: {color: '#000', fontSize: 20}
  },

  { 
    image: require('./some-image-forCheck.png'), 
    label: 'CheckTwo',
    labelLeft: true,  
    value: 'checkTwo', 
    styleCheckbox: {width: 30,height: 30,borderWidth: 2,borderColor: '#000'},
    styleLabel: {color: '#000', fontSize: 20}
  }
  ]}

/>

Properties

PropTypeDescription
arrayCheckboxArrayArray of checkboxes objects
imagerequire()Picture of the marked checkbox
valueStringKey for object of checkbox in array checkboxes, which return method getArrayCheckbox
styleCheckboxObjectObject of style checkbox
styleLabelObjectObject of style label
labelStringLabel for checkbox
labelLeftBooleanLabel before checkbox
labelRightBooleanLabel after checkbox

Methods

getArrayCheckbox return array of checkboxs with result

  import { getArrayCheckbox } from'react-native-checkbox-list';