react-native-ui-lib
Version:
[](https://travis-ci.org/wix/react-native-ui-lib) [](https://www.npmjs.com/package/react-native-ui-lib) [![NPM Down
26 lines (25 loc) • 659 B
TypeScript
/// <reference types="react" />
import { BaseComponent } from "../../commons";
declare type RadioButtonProps = {
value: string;
onValueChange?: (...args: any[]) => any;
color?: string;
size?: number;
borderRadius?: number;
};
/**
* A Radio Button component, should be wrapped inside a RadioGroup
*/
declare class RadioButton extends BaseComponent<RadioButtonProps, {}> {
static displayName: string;
static contextTypes: {
value: any;
onValueChange: any;
};
state: {};
generateStyles(): void;
onPress: () => void;
isSelected(): boolean;
render(): JSX.Element;
}
export default RadioButton;