35 lines
988 B
TypeScript
35 lines
988 B
TypeScript
import { Component, ReactElement } from 'react';
|
|
import { ViewStyle } from 'react-native';
|
|
interface RadioItemProps {
|
|
testID?: string;
|
|
style?: ViewStyle;
|
|
label?: string;
|
|
value: any;
|
|
disabled?: boolean;
|
|
checked?: boolean;
|
|
iconPosition?: 'left' | 'right';
|
|
onChange: Function;
|
|
checkedIcon?: ReactElement<any>;
|
|
uncheckedIcon?: ReactElement<any>;
|
|
renderItem?: Function;
|
|
}
|
|
export default class RadioItem extends Component<RadioItemProps> {
|
|
static displayName: string;
|
|
static defaultProps: {
|
|
label: string;
|
|
value: any;
|
|
disabled: boolean;
|
|
checked: boolean;
|
|
iconPosition: string;
|
|
};
|
|
private animated;
|
|
constructor(props: any);
|
|
componentDidMount(): void;
|
|
componentWillReceiveProps(nextProps: any): void;
|
|
handlePress: () => void;
|
|
renderIcon: (checked: any, iconPosition: any) => JSX.Element;
|
|
renderLabel: (checked: any) => JSX.Element;
|
|
render(): JSX.Element;
|
|
}
|
|
export {};
|