UNPKG

expo-dark-mode-switch

Version:

Dark-mode theme toggle with a universal Switch component

8 lines (7 loc) 310 B
import * as React from 'react'; import { TouchableOpacity } from './Elements'; export declare type Props = React.ComponentProps<typeof TouchableOpacity> & { onChange: (value: boolean) => void; value: boolean; }; export default function Switch({ onChange, style, value, ...props }: Props): JSX.Element;