import { DefaultTheme } from "styled-components"; declare type Props = { /** * Status of checkbox. */ status: "checked" | "unchecked" | "indeterminate"; /** * Whether checkbox is disabled. */ disabled?: boolean; /** * Function to execute on press. */ onPress?: () => void; /** * Custom color for unchecked checkbox. */ uncheckedColor?: string; /** * Custom color for checkbox. */ color?: string; /** * @optional */ theme?: DefaultTheme; /** * testID to be used on tests. */ testID?: string; }; /** * Checkboxes allow the selection of multiple options from a set. * *
*
* *
Android (enabled)
*
*
* *
Android (disabled)
*
*
* *
iOS (enabled)
*
*
* *
iOS (disabled)
*
*
* * ## Usage * ```js * import * as React from 'react'; * import Checkbox from 'react-native-simple-elements/components/Checkbox'; * * const MyComponent = () => { * const [checked, setChecked] = React.useState(false); * * return ( * { * setChecked(!checked); * }} * /> * ); * }; * * export default MyComponent; * ``` */ declare const Checkbox: (props: Props) => JSX.Element; export default Checkbox;