UNPKG

react-native-elements

Version:
38 lines (37 loc) 2 kB
import React from 'react'; import { ViewStyle, StyleProp, TextStyle } from 'react-native'; import { RneFunctionComponent } from '../helpers'; export declare type ButtonGroupProps = { button?: object; Component?: typeof React.Component; onPress?(...args: any[]): void; buttons?: (string | React.ReactElement<{}>)[]; containerStyle?: StyleProp<ViewStyle>; textStyle?: StyleProp<TextStyle>; selectedTextStyle?: StyleProp<TextStyle>; selectedButtonStyle?: StyleProp<ViewStyle>; underlayColor?: string; selectedIndex?: number | null; selectedIndexes?: number[]; activeOpacity?: number; onHideUnderlay?(): void; onShowUnderlay?(): void; setOpacityTo?: (value: number) => void; innerBorderStyle?: { color?: string; width?: number; }; buttonStyle?: StyleProp<ViewStyle>; buttonContainerStyle?: StyleProp<ViewStyle>; selectMultiple?: boolean; disabled?: boolean | number[]; disabledStyle?: StyleProp<ViewStyle>; disabledTextStyle?: StyleProp<TextStyle>; disabledSelectedStyle?: StyleProp<ViewStyle>; disabledSelectedTextStyle?: StyleProp<TextStyle>; vertical?: boolean; }; declare const ButtonGroup: RneFunctionComponent<ButtonGroupProps>; export { ButtonGroup }; declare 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>>>; export default _default;