Skip to content

@chainplatform/checkbox is a React Native library that provides a Checkbox component for react-native and react-native-web.

License

Notifications You must be signed in to change notification settings

ChainPlatform/react-native-checkbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Native Checkbox

@chainplatform/checkbox is a React Native library that provides a Checkbox component for react-native and react-native-web.

Follow @doansan

Install

npm install @chainplatform/checkbox --save

or

yarn add @chainplatform/checkbox

Usage

import React from 'react';
import {StyleSheet} from 'react-native';
import CheckBox from '@chainplatform/checkbox';

class App extends React.Component {

  render() {
    return (
      <View style={{flex:1}}>
            <CheckBox
                    onClick={() => {
                        this.setState({isChecked: true});
                    }}
                    isChecked={this.state.isChecked}
                    text={"Check Box"}
                    textStyle={{
                        fontSize: 14,
                        marginLeft: 3,
                        color: "green"
                    }}
                    textAlign={'right'}
                />
      </View>
    );
  }
}

About

@chainplatform/checkbox is a React Native library that provides a Checkbox component for react-native and react-native-web.

Resources

License

Stars

Watchers

Forks

Packages

No packages published