UNPKG

746 BTypeScriptView Raw
1import { Animated, TouchableOpacityProps } from 'react-native';
2import { GenericTouchableProps } from './GenericTouchable';
3import { Component } from 'react';
4/**
5 * TouchableOpacity bases on timing animation which has been used in RN's core
6 */
7export default class TouchableOpacity extends Component<TouchableOpacityProps & GenericTouchableProps> {
8 static defaultProps: {
9 activeOpacity: number;
10 delayLongPress: number;
11 extraButtonProps: {
12 rippleColor: string;
13 };
14 };
15 getChildStyleOpacityWithDefault: () => number;
16 opacity: Animated.Value;
17 setOpacityTo: (value: number, duration: number) => void;
18 onStateChange: (_from: number, to: number) => void;
19 render(): JSX.Element;
20}