All Projects → ismayilmalik → react-native-checkbox-heaven

ismayilmalik / react-native-checkbox-heaven

Licence: MIT License
Checkbox component for ReactNative

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to react-native-checkbox-heaven

CustomWebCheckbox
An example of a make checkbox design on the web.
Stars: ✭ 12 (-42.86%)
Mutual labels:  checkbox, checkbox-component
awesome-web-styling
Awesome Web Styling with CSS Animation Effects ⭐️
Stars: ✭ 109 (+419.05%)
Mutual labels:  checkbox
XPlugins.iOS.BEMCheckBox
Use the BEMCheckBox in Xamarin.
Stars: ✭ 19 (-9.52%)
Mutual labels:  checkbox
Examples Qt
Shows how to use Qt widgets only by programming code (c++17).
Stars: ✭ 38 (+80.95%)
Mutual labels:  checkbox
GDCheckbox
Customizable CheckBox / RadioButton component for iOS
Stars: ✭ 23 (+9.52%)
Mutual labels:  checkbox
twtree
a highly customizable tree component for vue 2
Stars: ✭ 27 (+28.57%)
Mutual labels:  checkbox
LC-switch
Superlight vanilla javascript plugin improving forms look and functionality
Stars: ✭ 31 (+47.62%)
Mutual labels:  checkbox
Examples Gtkmm
Shows how to use Gtkmm controls by programming code (c++17).
Stars: ✭ 23 (+9.52%)
Mutual labels:  checkbox
vaadin-checkbox
The Web Component for customized checkboxes. Part of the Vaadin components.
Stars: ✭ 18 (-14.29%)
Mutual labels:  checkbox
react-native-select-multiple
☑️ A customiseable FlatList that allows you to select multiple rows
Stars: ✭ 155 (+638.1%)
Mutual labels:  checkbox
bootstrap5-tags
Replace select[multiple] with nices badges for Bootstrap 5
Stars: ✭ 58 (+176.19%)
Mutual labels:  checkbox
ExpandedCollectionBundle
Symfony bundle for render entity collections as a selectable expanded list.
Stars: ✭ 13 (-38.1%)
Mutual labels:  checkbox
simple-switch
Vanilla JS/CSS Switch UI element
Stars: ✭ 18 (-14.29%)
Mutual labels:  checkbox
whaaaaat
Inquirer.js port to Python (https://www.npmjs.com/package/inquirer). people blame me for staling this project. I do not have time to work on this right now - whaaaaat do you want me to do? take it offline?
Stars: ✭ 73 (+247.62%)
Mutual labels:  checkbox
react-super-treeview
👏 Finally, a React Treeview component which is customizable on every level
Stars: ✭ 98 (+366.67%)
Mutual labels:  checkbox
vt-toggle
Turn HTML checkbox inputs into fancy toggle switches with just a CSS class
Stars: ✭ 14 (-33.33%)
Mutual labels:  checkbox
boxdetect
BoxDetect is a Python package based on OpenCV which allows you to easily detect rectangular shapes like character or checkbox boxes on scanned forms.
Stars: ✭ 46 (+119.05%)
Mutual labels:  checkbox
checkbox.sh
Interactive checkboxes (menu) with pagination and vim keybinds for bash
Stars: ✭ 26 (+23.81%)
Mutual labels:  checkbox
CCheckbox-iOS
CCheckbox is a custom UIView which represents custom checkbox component with custom images
Stars: ✭ 28 (+33.33%)
Mutual labels:  checkbox
react-native-modest-checkbox
A modest checkbox component for React Native ✅
Stars: ✭ 54 (+157.14%)
Mutual labels:  checkbox

react-native-checkbox-heaven

ReactNative Checkbox components which contains 17 design type.Built in with the help of react-native-vector-icons. Currently supports icon sets:

I categorized checkboxes to 3 type:

  1. Edge (outlined icon for both state)
  2. Fill (filled icon for both state)
  3. Mix (outlined for unchecked, filled for checked state)

Default checkboxes

Imgur

Styled checkboxes

Imgur

Installation guide

  1. First react-native-vector-icons must be installed and linked
  2. Run: $ npm install react-native-checkbox-heaven --save

Examples

1.Import component

import CheckBox from 'react-native-checkbox-heaven';

2.Basic use (default icon is iosMix)

 <CheckBox
    onChange={(val) => alert(val)}
    checked={true}
/>

3.Full

import React, { Component } from 'react';
import {
  AppRegistry,
  StyleSheet,
  Text,
  View
} from 'react-native';

import CheckBox from 'react-native-checkbox-heaven'

export default class checkboxDemo extends Component {
  state = {
    checked: false
  }
  handleOnChange(val) {
    this.setState({ checked: val })
  }
  render() {

    return (
      <View style={styles.container}>
        <CheckBox
          label='demo label'
          labelStyle={styles.labelStyle}
          iconSize={28}
          iconName='matMix'
          checked={this.state.checked}
          checkedColor='#008080'
          uncheckedColor='#8b0000'
          onChange={this.handleOnChange.bind(this)}
          disabled={true}
          disabledColor='red'
        />
      </View>
    );
  }
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent: 'center',
    alignItems: 'center',
    backgroundColor: '#F5FCFF',
  },
  labelStyle: {
    marginLeft: 4,
    fontSize: 16,
    fontWeight: 'bold',
    color: '#2f4f4f'
  }
});

AppRegistry.registerComponent('checkboxDemo', () => checkboxDemo);

API

Property Type Default Value Description
style object {} Style for TouchableOpacity
checked bool false Checbox state
onChange func Handler function for button press. Required
labelPosition string 'right' Position for label ('right' or 'left')
labelStyle object {fontSize:16,marginLeft:3} Style for Text
iconName string 'iosMix' Icon name
iconStyle object {} Custom style for Icon react-native-vector-icons
iconSize number 30 Icon size
checkedColor string '#464646' Icon color for checked state
uncheckedColor string '#464646' Icon color for checked state
disabled bool false Disable checkbox
disabledColor string '#888' Disabled color

License

This project is licenced under the MIT License.

Contribution

Speacial thanks to udarts, Maksim Degtyarev and pitchourou. Any contribution welcome!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].