UNPKG

1.57 kBTypeScriptView Raw
1import * as React from 'react';
2export declare type Props = {
3 /**
4 * Value of the radio button
5 */
6 value: string;
7 /**
8 * Status of radio button.
9 */
10 status?: 'checked' | 'unchecked';
11 /**
12 * Whether radio is disabled.
13 */
14 disabled?: boolean;
15 /**
16 * Function to execute on press.
17 */
18 onPress?: () => void;
19 /**
20 * Custom color for unchecked radio.
21 */
22 uncheckedColor?: string;
23 /**
24 * Custom color for radio.
25 */
26 color?: string;
27 /**
28 * @optional
29 */
30 theme: ReactNativePaper.Theme;
31 /**
32 * testID to be used on tests.
33 */
34 testID?: string;
35};
36declare const _default: React.ComponentType<Pick<Props, "color" | "onPress" | "testID" | "value" | "disabled" | "status" | "uncheckedColor"> & {
37 theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined;
38}> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<React.ComponentType<Props> & ((props: Props) => JSX.Element), {}>;
39export default _default;
40declare const RadioButtonWithTheme: React.ComponentType<Pick<Props, "color" | "onPress" | "testID" | "value" | "disabled" | "status" | "uncheckedColor"> & {
41 theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined;
42}> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<React.ComponentType<Props> & ((props: Props) => JSX.Element), {}>;
43export { RadioButtonWithTheme as RadioButton };
44
\No newline at end of file