Coder Social home page Coder Social logo

nathanetech / react-native-bouncy-checkbox Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wrathchaos/react-native-bouncy-checkbox

0.0 0.0 0.0 8 MB

Fully customizable animated bouncy checkbox for React Native

Home Page: https://freakycoder.com

License: MIT License

JavaScript 41.57% Java 13.34% Ruby 14.11% Objective-C 21.23% Starlark 9.74%

react-native-bouncy-checkbox's Introduction

React Native Bouncy Checkbox

Battle Tested โœ…

Fully customizable animated bouncy checkbox for React Native

npm version npm Platform - Android and iOS License: MIT styled with prettier

React Native Bouncy Checkbox React Native Bouncy Checkbox

Installation

Add the dependency:

React Native:

npm i react-native-bouncy-checkbox

Peer Dependencies

IMPORTANT! You need install them.
"react": ">= 16.x.x",
"react-native": ">= 0.55.x",
"react-native-vector-icons": ">= 6.6.0",
"react-native-dynamic-vector-icons": ">= 0.2.1"

Import

import BouncyCheckbox from "react-native-bouncy-checkbox";

Usage

Basic (Default) Usage

<BouncyCheckbox />

Basic Usage

<BouncyCheckbox
  isChecked
  textColor="#000"
  fillColor="red"
  text="Buy tickets for concert ๐ŸŽ‰ ๐ŸŽŠ"
/>

Advanced Custom Usage

<BouncyCheckbox
  isChecked={false}
  textColor="#000"
  unfillColor="white"
  fontFamily="JosefinSans-Regular"
  iconComponent={
    <Image
      style={{ height: 10, width: 10 }}
      source={require("./assets/checkmark.png")}
    />
  }
  text="Custom Icon Example"
/>

Configuration - Props

Property Type Default Description
text string Call my mom ๐Ÿ˜‡ set the checkbox's text
textColor color #757575 change the text's color
fontFamily string default set your own font family
fontSize number 16 change the text's font size
isChecked boolean false set the default checkbox value
checkboxSize number 25 change the checkbox's size
borderRadius number size/2 change the checkbox's border radius if you do not want the circle one
borderColor color #f09f48 change the checkbox's border color
fillColor color #f09f48 change the checkbox's filled color
unfillColor color transparent change the checkbox's un-filled color when it's not checked
iconComponent component Icon set your own icon component
onPress function null set your own onPress functionality after the bounce effect

Future Plans

  • LICENSE
  • Remove item feature
  • Re-sort the list availability feature
  • Write an article about the lib on Medium

Author

FreakyCoder, [email protected]

License

React Native Bouncy Checkbox is available under the MIT license. See the LICENSE file for more info.

react-native-bouncy-checkbox's People

Contributors

wrathchaos avatar nathanetech avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.