New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-native-checkbox-animated

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-checkbox-animated

A customizable animated checkbox component for React Native

latest
Source
npmnpm
Version
0.0.10
Version published
Weekly downloads
8
-46.67%
Maintainers
1
Weekly downloads
 
Created
Source
banner

A customizable animated checkbox component for React Native

Table of Contents

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

    A customizable animated checkbox component for React Native. No extra library required.

    Install

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

    Usage

    demo
    // ... Imports
    import React, { useState } from "react";
    import Checkbox from "react-native-checkbox-animated";
    
    const App = () => {
      const [checked, setChecked] = useState(false);
    
      return (
        <View>
          ...
          <CheckBox
            label="your label here"
            onValueChange={val => setChecked(val)}
            checked={checked}
          />
          ...
        </View>
      );
    };
    

    Checkout examples.js for the above examples.

    Props

    PropertyDescriptionRequiredTypeDefault Value
    checkedCurrent state of the checkBoxtruebooleanfalse
    onValueChangeCallback when checkbox is pressed. Return checkbox statetruefunction => boolean-
    sizeSpecify the size of the checkBoxfalsenumber20
    labelText or React Component that follows the checkboxfalsestring / React ComponentYour label here
    touchableLabelSpecify if state of checkbox changes when label is pressedfalsebooleantrue
    checkedBackgroundColorSpecify the color of checkbox's background when it's checkedfalsestring#22cdf0
    unCheckedBackgroundColorSpecify the color of checkbox's background when it's not checkedfalsestringwhite
    checkedBorderColorSpecify the color of checkbox's border when it's checkedfalsestringgrey
    unCheckedBorderColorSpecify the color of checkbox's border when it's not checkedfalsestringtransparent
    borderWidthBorder width of checkboxfalsenumber1
    rippleEffectSpecify if label has ripple effect on press when touchableLabel is set to truefalsebooleantrue
    rippleColorSpecify the color of ripple effect when it is set to truefalsestringblack
    checkPositionSpecify the position where the checkbox will be renderedfalseenum('left' | 'right')left
    checkBoxRadiusSpecify the radius of the checkboxfalsenumber20% of size
    roundedSet the shape of the checkbox to be rounded instead of a squarefalsebooleanfalse
    checkMarkSizeSpecify the size of the checkboxfalsenumber15
    checkMarkColorSpecify the color of the default checkmarkfalsestringblack
    animationTypeSpecify the custom animation typefalseenum('scale' | 'left' | 'reveal')scale
    checkStyleText styles props applied to the checkmark characterfalseTextStyle{}
    labelStyleText styles props applied to your labelfalseTextStyle{}
    labelContainerStyleView styles props applied to label containerfalseViewStyle{}
    containerStyleView styles props applied to the main containerfalseViewStyle{}
    checkboxContainerStyleView styles props applied to the container that wraps the checkboxfalseViewStyle{ padding: 10 }
    boxStyleView styles props applied to the box that wraps the checkmark.falseViewStyle{}
    customMarkerReplace the checkmark for your custom checkmarkfalseReactNode-

    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.

    Keywords

    checkbox

    FAQs

    Package last updated on 11 Jun 2021

    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