UNPKG

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