UNPKG

react-native-ui-lib

Version:

<p align="center"> <img src="https://user-images.githubusercontent.com/1780255/105469025-56759000-5ca0-11eb-993d-3568c1fd54f4.png" height="250px" style="display:block"/> </p> <p align="center">UI Toolset & Components Library for React Native</p> <p a

55 lines (54 loc) 1.33 kB
import React from 'react'; import { StyleProp, ViewStyle, ColorValue } from 'react-native'; export declare type SwitchProps = { /** * The value of the switch. If true the switch will be turned on. Default value is false */ value?: boolean; /** * Invoked with the new value when the value changes */ onValueChange?: (value: boolean) => void; /** * Whether the switch should be disabled */ disabled?: boolean; /** * The Switch width */ width?: number; /** * The Switch height */ height?: number; /** * The Switch background color when it's turned on */ onColor?: ColorValue; /** * The Switch background color when it's turned off */ offColor?: ColorValue; /** * The Switch background color when it's disabled */ disabledColor?: ColorValue; /** * The Switch's thumb color */ thumbColor?: ColorValue; /** * The Switch's thumb size (width & height) */ thumbSize?: number; /** * The Switch's thumb style */ thumbStyle?: StyleProp<ViewStyle>; style?: StyleProp<ViewStyle>; testID?: string; }; declare const _default: React.ComponentClass<SwitchProps & { useCustomTheme?: boolean | undefined; }, any>; export default _default;