All Projects → tiaanduplessis → react-native-modest-checkbox

tiaanduplessis / react-native-modest-checkbox

Licence: MIT license
A modest checkbox component for React Native ✅

Programming Languages

javascript
184084 projects - #8 most used programming language

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

Teaset
A UI library for react native, provides 20+ pure JS(ES6) components, focusing on content display and action control.
Stars: ✭ 2,845 (+5168.52%)
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 (+35.19%)
Mutual labels:  checkbox
react-native-select-multiple
☑️ A customiseable FlatList that allows you to select multiple rows
Stars: ✭ 155 (+187.04%)
Mutual labels:  checkbox
Examples wxWidgets
Shows how to use wxWidgets controls only by programming code (c++17).
Stars: ✭ 116 (+114.81%)
Mutual labels:  checkbox
vt-toggle
Turn HTML checkbox inputs into fancy toggle switches with just a CSS class
Stars: ✭ 14 (-74.07%)
Mutual labels:  checkbox
GDCheckbox
Customizable CheckBox / RadioButton component for iOS
Stars: ✭ 23 (-57.41%)
Mutual labels:  checkbox
React Menu
React component for building accessible menu, dropdown, submenu, context menu and more.
Stars: ✭ 237 (+338.89%)
Mutual labels:  checkbox
twtree
a highly customizable tree component for vue 2
Stars: ✭ 27 (-50%)
Mutual labels:  checkbox
XPlugins.iOS.BEMCheckBox
Use the BEMCheckBox in Xamarin.
Stars: ✭ 19 (-64.81%)
Mutual labels:  checkbox
bootstrap5-tags
Replace select[multiple] with nices badges for Bootstrap 5
Stars: ✭ 58 (+7.41%)
Mutual labels:  checkbox
react-inputs-validation
A react component for form inputs validation. Online demo examples
Stars: ✭ 48 (-11.11%)
Mutual labels:  checkbox
LC-switch
Superlight vanilla javascript plugin improving forms look and functionality
Stars: ✭ 31 (-42.59%)
Mutual labels:  checkbox
pretty-checkbox-react
A tiny react/preact wrapper around pretty-checkbox
Stars: ✭ 35 (-35.19%)
Mutual labels:  checkbox
Simplecheckbox
A simple Checkbox
Stars: ✭ 253 (+368.52%)
Mutual labels:  checkbox
Examples Qt
Shows how to use Qt widgets only by programming code (c++17).
Stars: ✭ 38 (-29.63%)
Mutual labels:  checkbox
Pretty Checkbox Vue
Quickly integrate pretty checkbox components with Vue.js
Stars: ✭ 240 (+344.44%)
Mutual labels:  checkbox
CustomWebCheckbox
An example of a make checkbox design on the web.
Stars: ✭ 12 (-77.78%)
Mutual labels:  checkbox
ExpandedCollectionBundle
Symfony bundle for render entity collections as a selectable expanded list.
Stars: ✭ 13 (-75.93%)
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 (-14.81%)
Mutual labels:  checkbox
simple-switch
Vanilla JS/CSS Switch UI element
Stars: ✭ 18 (-66.67%)
Mutual labels:  checkbox
banner

A modest checkbox component for React Native

Table of Contents

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

    A customizable checkbox component for React Native that supports setting a custom image or component as the checkbox. Inspired by react-native-checkbox.

    Install

    $ npm install --save react-native-modest-checkbox
    $ yarn add react-native-modest-checkbox

    Usage

    demo
    // ... Imagine imports here
    import Checkbox from 'react-native-modest-checkbox'
    
    export default class App extends Component {
      render() {
        return (
          <View style={styles.container}>
            <Checkbox
              label='Text for checkbox'
              onChange={(checked) => console.log('Checked!')}
            />
          </View>
        );
      }
    }
    
    const styles = StyleSheet.create({
    // Imagine some amazing styles right here..
    })
    
    AppRegistry.registerComponent('App', () => App);

    You can use your own images for the checkbox states:

    <CheckBox checkedImage={require('./path/to/image.png')} uncheckedImage={require('./path/to/otherImage.png')} />

    It can also be used with your own components for the checkbox states:

    // Using react-native-vector-icons
    
    <CheckBox
      checkedComponent={<Icon name="hand-peace-o" size={25} color="#222" />}
      uncheckedComponent={<Icon name="hand-paper-o" size={25} color="#222" />}
      label='Custom Component'
      onChange={(checked) => console.log('Checked!')}
    />

    Props

    Property Description Default Value
    checkedComponent Custom component representing the checked state <Text>Checked</Text>
    uncheckedComponent Custom component representing the unchecked state <Text>Unchecked</Text>
    checked Checked value of checkbox false
    checkboxStyle Styles applied to the checkbox { width: 30, height: 30 }
    label Text that will be displayed next to the checkbox 'Label'
    customLabel Customize label using React Component null
    labelBefore Flag if label should be before the checkbox false
    labelStyle Styles applied to the label {fontSize: 16, color: '#222'}
    numberOfLabelLines The number of lines over which the label will be displayed 1
    containerStyle Styles applied to the container of label & checkbox { flexDirection: 'row', alignItems: 'center'}
    checkedImage Image representing checked state (e.g. require('./path/to/image.png')) checked.png
    uncheckedImage Image representing unchecked state (e.g. require('./path/to/image.png')) unchecked.png
    onChange Callback that will be invoked when the checked state has changed. receives a object with name & checked properties as arguments none
    noFeedback Use TouchableWithoutFeedback as container of checkbox false

    Contribute

    Contributions are welcome. Please open up an issue or create PR if you would like to help out.

    Note: If editing the README, please conform to the standard-readme specification.

    License

    Licensed under the MIT License.

    Icon made by Freepik from www.flaticon.com is licensed by CC 3.0 BY.

    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].