CheckListOption
CheckListOptions are used to create a checkbox list option. They are used within the CheckList component.
Import
import { CheckListOption } from '@nomada-sh/react-native-eyecandy';
Example
See CheckList example.
Props
View Props
Inherits View Props.
Requiredid
| Type |
|---|
| string |
Requiredvalue
| Type |
|---|
| any |
title
| Type |
|---|
| string |
description
| Type |
|---|
| string |
selected
| Type |
|---|
| boolean |
disabled
| Type |
|---|
| boolean |
onPress
({ id: string, value: any }) => void;
| Type |
|---|
| function |
- 'id' (string): id of the option.
- 'value' (any): value of the option.
image
| Type |
|---|
| ImageSource |
checkComponent
| Type |
|---|
| component, element |