@chainplatform/checkbox
v0.1.0
Published
@chainplatform/checkbox is a React Native library that provides a Checkbox component for react-native and react-native-web.
Downloads
2
Maintainers
Readme
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>
);
}
}