Installation
$npm install tecatecom --save
Usage
import { Button } from 'tecatecom/src';
return (
<Button
width="60px"
height="40px"
background="#000"
onPress={() => alert('lollipop')}
style="" //add extra styles in css format
>
</Button>
)
Components props
Avatar props = {
size: string,
image: string,
editImageUrl?: any,
onPress?: () => void
}
Button props = {
width: string,
height: string,
background: string,
onPress?: () => void,
children: any,
style: string
}
CheckBox props = {
onPress: () => void,
label?: any,
checked: boolean,
size: string,
}
Header props = {
theme: string,
backCall?: () => void,
style?: string,
left?: any,
middle?: any,
right?: any
}
ListView props = {
list: {title: any, item: any}[],
spacing: string
}
TecateText props = {
color?: string,
variant: string,
style?: string,
children: any,
}
Selector props = {
grid: number,
maxSelect: number,
items: {value: number, view: any}[],
callBack: (values: any) => void
}