@types/react-native-platform-touchable
TypeScript icon, indicating that this package has built-in type declarations

1.1.6 • Public • Published

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

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

Credits

These definitions were written by Toni Granados, and Joel Nordström.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.1.61,101ts5.8
1.1.61,101ts5.7
1.1.61,101latest
1.1.61,101ts4.6
1.1.61,101ts4.7
1.1.61,101ts4.8
1.1.61,101ts4.9
1.1.61,101ts5.0
1.1.61,101ts5.1
1.1.61,101ts5.2
1.1.61,101ts5.3
1.1.61,101ts5.4
1.1.61,101ts5.5
1.1.61,101ts5.9
1.1.61,101ts5.6
1.1.61,101ts6.0
1.1.2111ts3.6
1.1.2111ts3.7
1.1.2111ts3.8
1.1.2111ts3.9
1.1.2111ts4.0
1.1.2111ts4.1
1.1.2111ts4.2
1.1.2111ts4.3
1.1.2111ts4.4
1.1.111ts2.8
1.1.111ts2.9
1.1.111ts3.0
1.1.111ts3.1
1.1.111ts3.2
1.1.111ts3.3
1.1.111ts3.4
1.1.111ts3.5
1.1.52ts4.5

Version History

VersionDownloads (Last 7 Days)Published
1.1.61,101
1.1.52
1.1.40
1.1.30
1.1.2111
1.1.111
1.1.00

Package Sidebar

Install

npm i @types/react-native-platform-touchable

Weekly Downloads

1,225

Version

1.1.6

License

MIT

Unpacked Size

5.45 kB

Total Files

5

Last publish

Collaborators

  • types