import React from 'react'; import { AccessibilityProps, StyleProp, ViewStyle } from 'react-native'; import { ListItemStyle } from '../list/style'; import { Theme } from '../style'; import { CheckboxStyle } from './style'; export interface OnChangeParams { target: { checked: boolean; }; } export interface CheckboxProps extends AccessibilityProps { defaultChecked?: boolean; checked?: boolean; disabled?: boolean; onChange?: (_e: OnChangeParams) => void; children?: React.ReactNode; indeterminate?: boolean; prefixCls?: string; style?: StyleProp; styles?: Partial; themeStyles?: (theme: Theme) => Partial; } export interface CheckboxItemProps extends Omit { right?: boolean; left?: boolean; onPress?: () => void; styles?: Partial; } export interface CheckboxForwardedRef { onPress: () => boolean; checked: boolean; }