@uiw/react-native
Version:
UIW for React Native
27 lines (26 loc) • 795 B
TypeScript
/// <reference types="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): JSX.Element;
declare namespace CheckBox {
var defaultProps: {
checkedIcon: string;
unCheckedIcon: string;
color: string;
size: number;
};
}
export default CheckBox;