UNPKG

6.5 kBTypeScriptView Raw
1import * as React from 'react';
2import TouchableRipple from '../TouchableRipple/TouchableRipple';
3import type { $RemoveChildren } from '../../types';
4declare 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: ReactNativePaper.Theme;
33 /**
34 * testID to be used on tests.
35 */
36 testID?: string;
37};
38declare const _default: (React.ComponentClass<Pick<Props, "style" | "color" | "onLayout" | "onPress" | "onLongPress" | "testID" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "accessibilityRole" | "accessibilityState" | "accessibilityHint" | "accessibilityValue" | "onAccessibilityAction" | "accessibilityLiveRegion" | "importantForAccessibility" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "key" | "hitSlop" | "hasTVPreferredFocus" | "tvParallaxProperties" | "delayLongPress" | "delayPressIn" | "delayPressOut" | "disabled" | "onBlur" | "onFocus" | "onPressIn" | "onPressOut" | "pressRetentionOffset" | "touchSoundDisabled" | "background" | "borderless" | "rippleColor" | "underlayColor" | "centered" | "value" | "status" | "uncheckedColor"> & {
39 theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined;
40}, any> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<(React.ComponentClass<Props, any> & {
41 ({ disabled, onPress, theme, value, status, testID, ...rest }: Props): JSX.Element;
42 displayName: string;
43}) | (React.FunctionComponent<Props> & {
44 ({ disabled, onPress, theme, value, status, testID, ...rest }: Props): JSX.Element;
45 displayName: string;
46}), {}>) | (React.FunctionComponent<Pick<Props, "style" | "color" | "onLayout" | "onPress" | "onLongPress" | "testID" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "accessibilityRole" | "accessibilityState" | "accessibilityHint" | "accessibilityValue" | "onAccessibilityAction" | "accessibilityLiveRegion" | "importantForAccessibility" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "key" | "hitSlop" | "hasTVPreferredFocus" | "tvParallaxProperties" | "delayLongPress" | "delayPressIn" | "delayPressOut" | "disabled" | "onBlur" | "onFocus" | "onPressIn" | "onPressOut" | "pressRetentionOffset" | "touchSoundDisabled" | "background" | "borderless" | "rippleColor" | "underlayColor" | "centered" | "value" | "status" | "uncheckedColor"> & {
47 theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined;
48}> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<(React.ComponentClass<Props, any> & {
49 ({ disabled, onPress, theme, value, status, testID, ...rest }: Props): JSX.Element;
50 displayName: string;
51}) | (React.FunctionComponent<Props> & {
52 ({ disabled, onPress, theme, value, status, testID, ...rest }: Props): JSX.Element;
53 displayName: string;
54}), {}>);
55export default _default;
56declare const RadioButtonAndroidWithTheme: (React.ComponentClass<Pick<Props, "style" | "color" | "onLayout" | "onPress" | "onLongPress" | "testID" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "accessibilityRole" | "accessibilityState" | "accessibilityHint" | "accessibilityValue" | "onAccessibilityAction" | "accessibilityLiveRegion" | "importantForAccessibility" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "key" | "hitSlop" | "hasTVPreferredFocus" | "tvParallaxProperties" | "delayLongPress" | "delayPressIn" | "delayPressOut" | "disabled" | "onBlur" | "onFocus" | "onPressIn" | "onPressOut" | "pressRetentionOffset" | "touchSoundDisabled" | "background" | "borderless" | "rippleColor" | "underlayColor" | "centered" | "value" | "status" | "uncheckedColor"> & {
57 theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined;
58}, any> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<(React.ComponentClass<Props, any> & {
59 ({ disabled, onPress, theme, value, status, testID, ...rest }: Props): JSX.Element;
60 displayName: string;
61}) | (React.FunctionComponent<Props> & {
62 ({ disabled, onPress, theme, value, status, testID, ...rest }: Props): JSX.Element;
63 displayName: string;
64}), {}>) | (React.FunctionComponent<Pick<Props, "style" | "color" | "onLayout" | "onPress" | "onLongPress" | "testID" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "accessibilityRole" | "accessibilityState" | "accessibilityHint" | "accessibilityValue" | "onAccessibilityAction" | "accessibilityLiveRegion" | "importantForAccessibility" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "key" | "hitSlop" | "hasTVPreferredFocus" | "tvParallaxProperties" | "delayLongPress" | "delayPressIn" | "delayPressOut" | "disabled" | "onBlur" | "onFocus" | "onPressIn" | "onPressOut" | "pressRetentionOffset" | "touchSoundDisabled" | "background" | "borderless" | "rippleColor" | "underlayColor" | "centered" | "value" | "status" | "uncheckedColor"> & {
65 theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined;
66}> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<(React.ComponentClass<Props, any> & {
67 ({ disabled, onPress, theme, value, status, testID, ...rest }: Props): JSX.Element;
68 displayName: string;
69}) | (React.FunctionComponent<Props> & {
70 ({ disabled, onPress, theme, value, status, testID, ...rest }: Props): JSX.Element;
71 displayName: string;
72}), {}>);
73export { RadioButtonAndroidWithTheme as RadioButtonAndroid };