0.1.0 • Published 12 months ago

@chainplatform/checkbox v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

React Native Checkbox

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

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>
    );
  }
}