Files
react-native-paper/typings/components/RadioButton.d.ts
Shen Junru a87c1dd85b fix: connect ts declaration with @types/react-native (#627)
* fix: connect ts declaration with @types/react-native

* fix: ts declaration

* fix: ts declaration
2018-11-08 10:32:53 +01:00

25 lines
752 B
TypeScript

import * as React from 'react';
import { ThemeShape } from '../types';
import { TouchableRipplePropsWithoutChildren } from './TouchableRipple';
export interface RadioButtonGroupProps {
onValueChange: (value: string) => any;
value: string;
children: React.ReactNode;
}
export interface RadioButtonProps extends TouchableRipplePropsWithoutChildren {
value: string;
status?: 'checked' | 'unchecked';
uncheckedColor?: string;
color?: string;
}
export declare class RadioButton extends React.Component<RadioButtonProps> {
static Group: React.ComponentType<RadioButtonGroupProps>;
static Android: React.ComponentType<RadioButtonProps>;
static IOS: React.ComponentType<
Exclude<RadioButtonProps, { uncheckedColor?: string }>
>;
}