import React, { Component } from 'react'
import {
View,
Image,
StyleSheet,
} from 'react-native'
import ClearText from './text'
export default class CheckBox extends Component {
render() {
const image = this.props.checked ? (
) : (
)
return (
this.props.onChange(this.props.checked)}>
{image}
{this.props.label}
)
}
}
const styles = StyleSheet.create({
row: {
flexDirection: 'row',
},
image: {
width: 30,
height: 30,
marginRight: 5,
}
})