UNPKG

react-native-elements

Version:
32 lines (31 loc) 2.42 kB
import React from 'react'; import { TouchableOpacityProps, TouchableNativeFeedbackProps, StyleProp, ViewStyle, ActivityIndicatorProps, TextStyle } from 'react-native'; import { RneFunctionComponent } from '../helpers'; import { IconNode } from '../icons/Icon'; import { TextProps } from '../text/Text'; export declare type ButtonProps = TouchableOpacityProps & TouchableNativeFeedbackProps & { title?: string | React.ReactElement<{}>; titleStyle?: StyleProp<TextStyle>; titleProps?: TextProps; buttonStyle?: StyleProp<ViewStyle>; type?: 'solid' | 'clear' | 'outline'; loading?: boolean; loadingStyle?: StyleProp<ViewStyle>; loadingProps?: ActivityIndicatorProps; containerStyle?: StyleProp<ViewStyle>; icon?: IconNode; iconContainerStyle?: StyleProp<ViewStyle>; iconRight?: boolean; linearGradientProps?: object; TouchableComponent?: typeof React.Component; ViewComponent?: typeof React.Component; disabled?: boolean; disabledStyle?: StyleProp<ViewStyle>; disabledTitleStyle?: StyleProp<TextStyle>; raised?: boolean; iconPosition?: 'left' | 'right' | 'top' | 'bottom'; }; declare const Button: RneFunctionComponent<ButtonProps>; export { Button }; declare const _default: React.FunctionComponent<Pick<ButtonProps, "style" | "onLayout" | "testID" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "accessibilityRole" | "accessibilityState" | "accessibilityHint" | "accessibilityValue" | "onAccessibilityAction" | "accessibilityLiveRegion" | "importantForAccessibility" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "raised" | "disabled" | "onPress" | "onLongPress" | "activeOpacity" | "delayLongPress" | "delayPressIn" | "delayPressOut" | "hitSlop" | "onBlur" | "onFocus" | "onPressIn" | "onPressOut" | "pressRetentionOffset" | "hasTVPreferredFocus" | "tvParallaxProperties" | "touchSoundDisabled" | "background" | "useForeground" | "type" | "containerStyle" | "disabledStyle" | "title" | "icon" | "titleStyle" | "loading" | "titleProps" | "buttonStyle" | "loadingStyle" | "loadingProps" | "iconContainerStyle" | "iconRight" | "linearGradientProps" | "TouchableComponent" | "ViewComponent" | "disabledTitleStyle" | "iconPosition">> | React.ForwardRefExoticComponent<ButtonProps>; export default _default;