Giter VIP home page Giter VIP logo

trendingtechnology / react-native-checkbox-flex Goto Github PK

View Code? Open in Web Editor NEW

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

0.0 2.0 0.0 25.19 MB

Fully customizable, easy to use checkbox with flexible component by React Native on Android and iOS

Home Page: https://freakycoder.com

JavaScript 6.86% Starlark 2.39% Java 24.65% Ruby 3.05% Objective-C 17.56% TypeScript 45.49%

react-native-checkbox-flex's Introduction

React Native Checkbox Flex

React Native Checkbox Flex

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

React Native Checkbox Flex React Native Checkbox Flex

Installation

Add the dependency:

npm i react-native-checkbox-flex

Peer Dependencies

IMPORTANT! You need install them
"@freakycoder/react-native-bounceable": "^0.2.4",

Usage

Import

import CheckboxFlex from "react-native-checkbox-flex";

Fundamental Usage

<CheckboxFlex
  title="Morning Run"
  date="9:00 AM"
  description="Nulla vitae elit libero, a pharetra augue."
  imageSource={require("./assets/running.png")}
/>

Example Project ๐Ÿ˜

You can checkout the example project ๐Ÿฅฐ

Simply run

  • npm i
  • react-native run-ios/android

should work of the example project.

Configuration - Props

activeCardBackgroundColor?: string; inactiveCardBackgroundColor?: string;

Fundamentals

Property Type Default Description
title string undefined set the checkbox title
date string undefined set the checkbox date
description string undefined set the checkbox description
imageSource image undefined set the checkbox icon image source

Customization (Optionals)

Property Type Default Description
onPress function undefined set your own logic for the button functionality when it is pressed
isActive boolean false set the initial isActive state
style ViewStyle default set or override the style object for the main container
checkboxContainerStyle ViewStyle default set or override the style object for the checkbox container
iconContainerStyle ViewStyle default set or override the style object for the icon container
iconImageStyle ImageStyle default set or override the style object for the icon image
titleTextStyle TextStyle default set or override the style object for the title text
dateTextStyle TextStyle default set or override the style object for the date text
descriptionTextStyle TextStyle default set or override the style object for the description text
titleNumberOfLines number 2 change the title number of lines
checkboxBorderColor color "rgba(100,100,100,0.9)" change the checkbox border color
activeCheckboxBackgroundColor color "#63eead" change the active checkbox container background color
inactiveCheckboxBackgroundColor color "transparent" change the inactive checkbox container background color
activeCardBackgroundColor color "#2173FF" change the active card container background color
activeCheckboxBackgroundColor color "#343c4d" change the inactive card container background color
disableBuiltInActiveSystem boolean false disable the built in active control system
disableDate boolean false disable date component
dateContainerStyle ViewStyle default set or override the style object for the checkbox date container
titleContainerStyle ViewStyle default set or override the style object for the checkbox title container
descriptionContainerStyle ViewStyle default set or override the style object for the checkbox description container

Future Plans

  • LICENSE
  • Write an article about the lib on Medium

Credits

Heavily Inspired by Nazar Lenyshyn's To Do List App UI - Animation Design

Author

FreakyCoder, [email protected]

License

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

react-native-checkbox-flex's People

Watchers

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