UNPKG

2 kBTypeScriptView Raw
1import React from 'react';
2import { ViewStyle, StyleProp, TextStyle } from 'react-native';
3import { RneFunctionComponent } from '../helpers';
4export declare type ButtonGroupProps = {
5 button?: object;
6 Component?: typeof React.Component;
7 onPress?(...args: any[]): void;
8 buttons?: (string | React.ReactElement<{}>)[];
9 containerStyle?: StyleProp<ViewStyle>;
10 textStyle?: StyleProp<TextStyle>;
11 selectedTextStyle?: StyleProp<TextStyle>;
12 selectedButtonStyle?: StyleProp<ViewStyle>;
13 underlayColor?: string;
14 selectedIndex?: number | null;
15 selectedIndexes?: number[];
16 activeOpacity?: number;
17 onHideUnderlay?(): void;
18 onShowUnderlay?(): void;
19 setOpacityTo?: (value: number) => void;
20 innerBorderStyle?: {
21 color?: string;
22 width?: number;
23 };
24 buttonStyle?: StyleProp<ViewStyle>;
25 buttonContainerStyle?: StyleProp<ViewStyle>;
26 selectMultiple?: boolean;
27 disabled?: boolean | number[];
28 disabledStyle?: StyleProp<ViewStyle>;
29 disabledTextStyle?: StyleProp<TextStyle>;
30 disabledSelectedStyle?: StyleProp<ViewStyle>;
31 disabledSelectedTextStyle?: StyleProp<TextStyle>;
32 vertical?: boolean;
33};
34declare const ButtonGroup: RneFunctionComponent<ButtonGroupProps>;
35export { ButtonGroup };
36declare const _default: React.FunctionComponent<Pick<ButtonGroupProps & Partial<import("../config").ThemeProps<ButtonGroupProps>>, "button" | "disabled" | "onPress" | "activeOpacity" | "onHideUnderlay" | "onShowUnderlay" | "underlayColor" | "Component" | "containerStyle" | "disabledStyle" | "textStyle" | "buttonStyle" | "buttons" | "selectedTextStyle" | "selectedButtonStyle" | "selectedIndex" | "selectedIndexes" | "setOpacityTo" | "innerBorderStyle" | "buttonContainerStyle" | "selectMultiple" | "disabledTextStyle" | "disabledSelectedStyle" | "disabledSelectedTextStyle" | "vertical">> | React.ForwardRefExoticComponent<ButtonGroupProps & Partial<import("../config").ThemeProps<ButtonGroupProps>>>;
37export default _default;