@uiw/react-native
Version:
UIW for React Native
19 lines (18 loc) • 629 B
TypeScript
import React from 'react';
import { TouchableOpacityProps, StyleProp, ViewStyle, TextStyle } from 'react-native';
export interface CheckBoxProps extends TouchableOpacityProps {
textStyle?: StyleProp<TextStyle & ViewStyle>;
checked?: boolean;
disabled?: boolean;
color?: string;
size?: number;
checkedIcon?: string | JSX.Element;
unCheckedIcon?: string | JSX.Element;
onChange?: (checked: boolean) => void;
}
export interface CheckBoxState {
checked: boolean;
controlChecked: 'props' | 'state';
}
declare function CheckBox(props: CheckBoxProps): React.JSX.Element;
export default CheckBox;