react-native-elements
Version:
React Native Elements & UI Toolkit
39 lines (38 loc) • 1.44 kB
TypeScript
import React from 'react';
import { ViewStyle, StyleProp, TextStyle } from 'react-native';
import { Theme } from '../config/theme';
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;
theme?: Theme;
disabled?: boolean | number[];
disabledStyle?: StyleProp<ViewStyle>;
disabledTextStyle?: StyleProp<TextStyle>;
disabledSelectedStyle?: StyleProp<ViewStyle>;
disabledSelectedTextStyle?: StyleProp<TextStyle>;
vertical?: boolean;
};
declare const ButtonGroup: React.FunctionComponent<ButtonGroupProps>;
export { ButtonGroup };
declare const _default: React.FunctionComponent<Omit<ButtonGroupProps, keyof import("../config/ThemeProvider").ThemeProps<T>>>;
export default _default;