import { StyleProp, ViewStyle } from 'react-native'

export type EventOnChange = {
  detail: {
    value: boolean
  }
}

export interface SwitchState {
  checked: boolean;
}

export interface SwitchProps {
  style?: StyleProp<ViewStyle>;
  checked?: boolean;
  type: 'switch' | 'checkbox';
  color: string;
  onChange?: (evt: EventOnChange) => void;
}
