reactnativecomponents
Version:
React Native Components
31 lines (30 loc) • 953 B
TypeScript
import * as PropTypes from 'prop-types';
import AbstractFormComponent from '../Form/AbstractFormComponent';
import { RadioGroupProps } from './Props';
/**
* @author 田尘殇Sean(sean.snow@live.com) create at 2018/3/2
*/
export declare class RadioGroup extends AbstractFormComponent<RadioGroupProps, any> {
static childContextTypes: {
onChange: PropTypes.Requireable<(...args: any[]) => any>;
labelPosition: PropTypes.Requireable<string>;
checked: PropTypes.Requireable<any>;
};
static defaultProps: {
labelPosition: string;
};
state: any;
constructor(props: any);
getChildContext(): {
onChange: (checked: any) => void;
labelPosition: "left" | "right";
checked: any;
};
componentWillReceiveProps({ checked }: {
checked: any;
}): void;
handleChange(checked: any): void;
getValue(): any;
isValid(): boolean;
render(): JSX.Element;
}