react-native-ui-lib
Version:
<p align="center"> <img src="https://user-images.githubusercontent.com/1780255/105469025-56759000-5ca0-11eb-993d-3568c1fd54f4.png" height="250px" style="display:block"/> </p> <p align="center">UI Toolset & Components Library for React Native</p> <p a
53 lines (52 loc) • 1.45 kB
TypeScript
import React from 'react';
import { LayoutChangeEvent } from 'react-native';
import { State } from 'react-native-gesture-handler';
import { ViewProps } from '../components/view';
export declare 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;
onLayout?: (event: LayoutChangeEvent) => void;
testID?: string;
};
declare const _default: React.ComponentClass<TouchableOpacityProps & {
useCustomTheme?: boolean | undefined;
}, any>;
export default _default;