import * as React from "react"; import { View, TouchableHighlightProps } from "react-native"; import Icon from "./Icon"; import Touchable from "./Touchable"; import { withTheme } from "../core/theming"; import themeT from "../styles/DefaultTheme"; type Props = { status?: "checked" | "indeterminate" | "unchecked"; disabled?: boolean; onPress?: () => void; theme: typeof themeT; color?: string; } & TouchableHighlightProps; const CheckboxIOS: React.FC = ({ status = "unchecked", disabled = false, onPress = () => {}, theme, color, style, ...rest }) => { const indeterminate = status === "indeterminate"; const checkedColor = color || theme.colors.primary; const icon = indeterminate ? "MaterialIcons/remove" : "MaterialIcons/done"; return ( ); }; export default withTheme(CheckboxIOS);