import React from "react"; import { Switch as NativeSwitch } from "react-native"; import LightenColorShades from "../../helpers/LightenColorShades"; import { moderateScale } from "../../helpers/ResponsiveCalculations"; import { useTheme } from "../../hooks"; import type { SwitchProps } from "../../types"; const Switch: React.FC = ({ checked = true, color, disabled = false, size = 0.8, activeTrackColor, inactiveTrackColor = '#808080', onChange, ...props }) => { const theme: any = useTheme(); const switchColor = disabled ? '#808080' : color ?? theme.colors.primary; return (<> ) } export default Switch; export type { SwitchProps };