npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

rn-group-checkbox

v1.0.5

Published

Easy to create the group checkbox in react native with deep customization

Downloads

20

Readme

rn-group-checkbox

NPM version License MIT

Checkbox Group component for react native, it works on iOS and Android.

Content

Installation

  • 1.Run npm i rn-group-checkbox --save OR yarn add rn-group-checkbox
  • 2.import GroupCheckBox from 'rn-group-checkbox'

Getting started

Add rn-group-checkbox to your js file.

import GroupCheckBox from 'rn-group-checkbox'

Inside your component's render method, use CheckBox:

<GroupCheckBox
    onClick = {(value)=>console.log(value)}
/>

Then you can use it like this:

Custom CheckBox

<GroupCheckBox
    style={{flex: 1, padding: 10}}
    labelPosition="left"
    labelStyle={{
        color:'Orange',
        fontSize:14
    }}
    data={["one","two","three"]}
    defaultValue = {["one"]}
    onClick={(value)=>{
      console.log(value)
    }}
   
/>

More Usage:

GitHubPopular

API

Props | Type | Optional | Default | Description ----------------- | -------- | -------- | ----------- | ----------- labelPosition | PropTypes.oneOf | left/right | left | Custom style checkbox labelStyle | PropTypes.object | | | Custom left Text style data | PropTypes.array.isRequired |false | ["one","tow","three"] | any checkboxCheckedStyle | PropTypes.object | true | | Custom checkbox checked style checkboxUnCheckedStyle | PropTypes.object | true | | Custom checkbox unchecked style checkedImage | Text.propTypes.style | true | | Custom right Text style unCheckedImage | PropTypes.element | true | Default image | Custom unchecked Image onClick | PropTypes.func.isRequired | false | | callback function applyMaxCondition | PropTypes.bool | true | false | Apply limit on checkbox items for check maxAllowToCheck | PropTypes.number | | 1 | Total number of check box allow to check apply only when applyMaxCondition true messageForMaxLimitExceed | PropTypes.string | true | false | Show Message then max checkbox limit exceeded maxLimitExceedAlertButtonText | PropTypes.string | true | Okay | Alert button text otherOption | PropTypes.bool | true | true | Show other option otherOptionLabel | PropTypes.string | true | Other | Label for other checkbox otherInputStyle | PropTypes.object | true | | Customize other input box

Contribution

Issues are welcome. Please add a screenshot of bug and code snippet. Quickest way to solve issue is to reproduce it on one of the examples.

Pull requests are welcome. If you want to change API or making something big better to create issue and discuss it first.


MIT Licensed