1 | import * as React from 'react';
|
2 | import { Component } from 'react';
|
3 | import type { GenericTouchableProps } from './GenericTouchableProps';
|
4 | import { TouchableHighlightProps as RNTouchableHighlightProps, ColorValue } from 'react-native';
|
5 | interface State {
|
6 | extraChildStyle: null | {
|
7 | opacity?: number;
|
8 | };
|
9 | extraUnderlayStyle: null | {
|
10 | backgroundColor?: ColorValue;
|
11 | };
|
12 | }
|
13 | export type TouchableHighlightProps = RNTouchableHighlightProps & GenericTouchableProps;
|
14 |
|
15 |
|
16 |
|
17 | export default class TouchableHighlight extends Component<TouchableHighlightProps, State> {
|
18 | static defaultProps: {
|
19 | activeOpacity: number;
|
20 | delayPressOut: number;
|
21 | underlayColor: string;
|
22 | delayLongPress: number;
|
23 | extraButtonProps: {
|
24 | rippleColor: string;
|
25 | exclusive: boolean;
|
26 | };
|
27 | };
|
28 | constructor(props: TouchableHighlightProps);
|
29 | showUnderlay: () => void;
|
30 | hasPressHandler: () => (((event: import("react-native").GestureResponderEvent) => void) & (() => void)) | undefined;
|
31 | hideUnderlay: () => void;
|
32 | renderChildren(): React.JSX.Element;
|
33 | onStateChange: (_from: number, to: number) => void;
|
34 | render(): React.JSX.Element;
|
35 | }
|
36 | export {};
|