Type class Gap: support react-native version >= 0.71
HOOK: useClassName
Prop
Description
Default
className
class of component as:w-1 h-1
null
scaleScreen
Active use scale by width of screen
true
Checkbox
Prop
Description
Default
checked
state checked
false
value
state parameter when event press
null
label
label of checkbox
null
color
properties checked and default
checked: blue, default: gray
size
size of checkbox
20
sizeChildren
size of state checked if has size && (!sizeChildren) => size/2
10
iconChecked
custom icon checked, type: ImageSourcePropType
null
renderIconChecked
function render icon checked
null
className
class styles of container
null
classNameParent
class styles of Parent
null
classNameChildren
class styles of Children
null
classNameLabel
class styles of Label
null
isDebounce
Active debounce when event press
false
delayDebounce
time debounce of debounce
500
import{Checkbox}from'react-native-box-lite';<Checkboxlabel="Label"/><Checkboxcheckedlabel="Checked"/><Checkboxsize={28}checkedcolor={{checked: 'green'}}label="Custom color and size"/><Checkboxsize={28}checkediconChecked={Add}color={{checked: 'green'}}label="Custom icon"/>
RadioButton
Prop
Description
Default
checked
state checked
false
value
state parameter when press
null
label
label of radio
null
color
properties checked and default
checked: blue,default: gray
size
size of radio
20
sizeChildren
size of state checked if has size && (!sizeChildren) => size/2
8
className
class styles of container
null
classNameParent
class styles of Parent
null
classNameChildren
class styles of Children
null
classNameLabel
class styles of Label
null
isDebounce
Active debounce when press
false
delayDebounce
time debounce of debounce
500
import{RadioButton}from'react-native-box-lite';<RadioButtonlabel="Label"/><RadioButtoncheckedlabel="Checked"/><RadioButtonsize={28}checkedcolor={{checked: 'green'}}label="Custom color and size"/>