UNPKG

@ant-design/react-native

Version:

基于蚂蚁金服移动设计规范的 React Native 组件库

15 lines (14 loc) 671 B
import * as React from 'react'; import { StyleProp, ViewStyle } from 'react-native'; import { WithThemeStyles } from '../style'; import { SwitchPropsType } from './PropsType'; import { SwitchStyle } from './style/index'; export interface SwitchProps extends SwitchPropsType, WithThemeStyles<SwitchStyle> { style?: StyleProp<ViewStyle>; children?: React.ReactNode; } declare const AntmSwitch: { ({ prefixCls, style, checked, defaultChecked, disabled, color, loading, checkedChildren, unCheckedChildren, onPress, onChange, trackColor, thumbColor, thumbTintColor, ...restProps }: SwitchProps): JSX.Element; displayName: string; }; export default AntmSwitch;