react-navigation-stack
Version:
Stack navigator component for React Navigation
19 lines (18 loc) • 666 B
TypeScript
/**
* TouchableItem provides an abstraction on top of TouchableNativeFeedback and
* TouchableOpacity to handle platform differences.
*
* On Android, you can pass the props of TouchableNativeFeedback.
* On other platforms, you can pass the props of TouchableOpacity.
*/
import * as React from 'react';
import { ViewProps } from 'react-native';
export declare type Props = ViewProps & {
pressColor?: string;
disabled?: boolean;
borderless?: boolean;
delayPressIn?: number;
onPress?: () => void;
children: React.ReactNode;
};
export default function TouchableItem({ borderless, pressColor, style, children, ...rest }: Props): JSX.Element;