import React from 'react';
import {StyleProp, Switch, ViewStyle} from 'react-native';
import {SwitchPropsType} from './PropsType';
import {$Colors} from '../style';
export interface AntmSwitchProps extends SwitchPropsType {
    style?: StyleProp<ViewStyle>;
}
const AntmSwitch = (props: AntmSwitchProps) => {
    const {style, onChange, checked = false, disabled = false, color = $Colors.primary} = props;
    return <Switch style={style} onValueChange={onChange} value={checked} disabled={disabled} trackColor={{true: color, false: $Colors.grayIII}} />;
};

export default AntmSwitch;
