UNPKG

react-native-ui-lib

Version:

[![SWUbanner](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner-direct.svg)](https://stand-with-ukraine.pp.ua)

53 lines (52 loc) 1.48 kB
import React from 'react'; import { LayoutChangeEvent } from 'react-native'; import { State } from 'react-native-gesture-handler'; import { ViewProps } from '../components/view'; export type TouchableOpacityProps = { /** * Background color */ backgroundColor?: string; /** * Background color when actively pressing the touchable */ feedbackColor?: string; /** * Opacity value when actively pressing the touchable */ activeOpacity?: number; /** * Scale value when actively pressing the touchable */ activeScale?: number; /** * Callback for when tapping the touchable */ onPress?: (props: any) => void; /** * Callback for when long pressing the touchable */ onLongPress?: (props: any) => void; /** * Pass controlled pressState to track gesture state changes */ pressState?: State; /** * If true, disable all interactions for this component. */ disabled?: boolean; /** * Pass custom style */ style?: ViewProps['style']; /** * Custom value of any type to pass on to TouchableOpacity and receive back in onPress callback */ customValue?: any; children?: React.ReactNode; onLayout?: (event: LayoutChangeEvent) => void; testID?: string; nativeID?: string; }; declare const _default: React.ForwardRefExoticComponent<TouchableOpacityProps & React.RefAttributes<any>>; export default _default;