UNPKG

1.4 kBTypeScriptView Raw
1import * as React from 'react';
2import type { $RemoveChildren, ThemeProp } from '../../types';
3import TouchableRipple from '../TouchableRipple/TouchableRipple';
4export type Props = $RemoveChildren<typeof TouchableRipple> & {
5 /**
6 * Value of the radio button
7 */
8 value: string;
9 /**
10 * Status of radio button.
11 */
12 status?: 'checked' | 'unchecked';
13 /**
14 * Whether radio is disabled.
15 */
16 disabled?: boolean;
17 /**
18 * Function to execute on press.
19 */
20 onPress?: (param?: any) => void;
21 /**
22 * Custom color for unchecked radio.
23 */
24 uncheckedColor?: string;
25 /**
26 * Custom color for radio.
27 */
28 color?: string;
29 /**
30 * @optional
31 */
32 theme?: ThemeProp;
33 /**
34 * testID to be used on tests.
35 */
36 testID?: string;
37};
38/**
39 * Radio buttons allow the selection a single option from a set.
40 * This component follows platform guidelines for Android, but can be used
41 * on any platform.
42 *
43 * @extends TouchableRipple props https://callstack.github.io/react-native-paper/docs/components/TouchableRipple
44 */
45declare const RadioButtonAndroid: {
46 ({ disabled, onPress, theme: themeOverrides, value, status, testID, ...rest }: Props): React.JSX.Element;
47 displayName: string;
48};
49export default RadioButtonAndroid;
50export { RadioButtonAndroid };
51//# sourceMappingURL=RadioButtonAndroid.d.ts.map
\No newline at end of file