1 | import * as React from 'react';
|
2 | import { StyleProp, ViewStyle } from 'react-native';
|
3 | import { NativeViewGestureHandlerProps } from '../handlers/NativeViewGestureHandler';
|
4 | export interface RawButtonProps extends NativeViewGestureHandlerProps {
|
5 | exclusive?: boolean;
|
6 | rippleColor?: any;
|
7 | }
|
8 | export interface BaseButtonProps extends RawButtonProps {
|
9 | onPress?: (pointerInside: boolean) => void;
|
10 | onActiveStateChange?: (active: boolean) => void;
|
11 | style?: StyleProp<ViewStyle>;
|
12 | testID?: string;
|
13 | }
|
14 | export interface RectButtonProps extends BaseButtonProps {
|
15 | underlayColor?: string;
|
16 | activeOpacity?: number;
|
17 | }
|
18 | export interface BorderlessButtonProps extends BaseButtonProps {
|
19 | borderless?: boolean;
|
20 | activeOpacity?: number;
|
21 | }
|
22 | export declare const RawButton: React.ForwardRefExoticComponent<RawButtonProps & NativeViewGestureHandlerProps & React.RefAttributes<React.ComponentType<any>>>;
|
23 | export declare class BaseButton extends React.Component<BaseButtonProps> {
|
24 | private lastActive;
|
25 | constructor(props: BaseButtonProps);
|
26 | private handleEvent;
|
27 | private onHandlerStateChange;
|
28 | private onGestureEvent;
|
29 | render(): JSX.Element;
|
30 | }
|
31 | export declare class RectButton extends React.Component<RectButtonProps> {
|
32 | static defaultProps: {
|
33 | activeOpacity: number;
|
34 | underlayColor: string;
|
35 | };
|
36 | private opacity;
|
37 | constructor(props: RectButtonProps);
|
38 | private onActiveStateChange;
|
39 | render(): JSX.Element;
|
40 | }
|
41 | export declare class BorderlessButton extends React.Component<BorderlessButtonProps> {
|
42 | static defaultProps: {
|
43 | activeOpacity: number;
|
44 | borderless: boolean;
|
45 | };
|
46 | private opacity;
|
47 | constructor(props: BorderlessButtonProps);
|
48 | private onActiveStateChange;
|
49 | render(): JSX.Element;
|
50 | }
|
51 | export { default as PureNativeButton } from './GestureHandlerButton';
|