Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

react-native-modest-checkbox

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package version was removed
This package version has been unpublished, mostly likely due to security reasons

react-native-modest-checkbox

A modest checkbox component for React Native

unpublished
Source
npmnpm
Version
3.3.1
Version published
Weekly downloads
342
-14.07%
Maintainers
1
Weekly downloads
 
Created
Source
banner

A modest checkbox component for React Native

NPM version Downloads Standard Travis Build Standard Readme GitHub version

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

    PropertyDescriptionDefault Value
    checkedComponentCustom component representing the checked state<Text>Checked</Text>
    uncheckedComponentCustom component representing the unchecked state<Text>Unchecked</Text>
    checkedChecked value of checkboxfalse
    checkboxStyleStyles applied to the checkbox{ width: 30, height: 30 }
    labelText that will be displayed next to the checkbox'Label'
    customLabelCustomize label using React Componentnull
    labelBeforeFlag if label should be before the checkboxfalse
    labelStyleStyles applied to the label{fontSize: 16, color: '#222'}
    numberOfLabelLinesThe number of lines over which the label will be displayed1
    containerStyleStyles applied to the container of label & checkbox{ flexDirection: 'row', alignItems: 'center'}
    checkedImageImage representing checked state (e.g. require('./path/to/image.png'))checked.png
    uncheckedImageImage representing unchecked state (e.g. require('./path/to/image.png'))unchecked.png
    onChangeCallback that will be invoked when the checked state has changed. receives a object with name & checked properties as argumentsnone
    noFeedbackUse TouchableWithoutFeedback as container of checkboxfalse

    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.

    Keywords

    react-native

    FAQs

    Package last updated on 24 Nov 2025

    Did you know?

    Socket

    Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

    Install

    Related posts