1.1.6 • Published 5 months ago
@types/react-native-platform-touchable v1.1.6
Installation
npm install --save @types/react-native-platform-touchable
Summary
This package contains type definitions for react-native-platform-touchable (https://github.com/react-native-community/react-native-platform-touchable).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-native-platform-touchable.
index.d.ts
// Type definitions for react-native-platform-touchable 1.1
// Project: https://github.com/react-native-community/react-native-platform-touchable
// Definitions by: Toni Granados <https://github.com/tngranados>
// Joel Nordström <https://github.com/iwikal>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
import * as React from "react";
import { BackgroundPropType, RippleBackgroundPropType, ThemeAttributeBackgroundPropType, TouchableWithoutFeedbackProps } from "react-native";
export interface PlatformTouchableProps extends TouchableWithoutFeedbackProps {
// TouchableOpacity (default iOS)
activeOpacity?: number | undefined;
// TouchableNativeFeedback (default Android)
background?: BackgroundPropType | undefined;
foreground?: BackgroundPropType | undefined;
// TouchableHighlight
underlayColor?: string | undefined;
onHideUnderlay?: (() => void) | undefined;
onShowUnderlay?: (() => void) | undefined;
}
export class Touchable extends React.Component<PlatformTouchableProps> {
// TouchableOpacity (default iOS)
setOpacityTo: (value: number) => void;
// TouchableNativeFeedback (default Android)
static SelectableBackground(): ThemeAttributeBackgroundPropType;
static SelectableBackgroundBorderless(): ThemeAttributeBackgroundPropType;
static Ripple(color: string, borderless?: boolean): RippleBackgroundPropType;
static canUseNativeForeground(): boolean;
}
export default Touchable;
Additional Details
- Last updated: Thu, 08 Jul 2021 22:41:14 GMT
- Dependencies: @types/react, @types/react-native
- Global values: none
Credits
These definitions were written by Toni Granados, and Joel Nordström.