expo-custom-switch
Version:
Custom theme toggle with a universal Switch component
12 lines (11 loc) • 446 B
TypeScript
import * as React from 'react';
import { TouchableOpacity } from './Elements';
export declare type Props = React.ComponentProps<typeof TouchableOpacity> & {
onChange: (value: boolean) => void;
value: boolean;
iconLeft: object;
iconRight: object;
leftColor: string;
rightColor: string;
};
export default function Switch({ onChange, style, value, iconLeft, iconRight, leftColor, rightColor, ...props }: Props): JSX.Element;