1.1.6 • Published 5 months ago

@types/react-native-platform-touchable v1.1.6

Weekly downloads
1,237
License
MIT
Repository
github
Last release
5 months ago

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

Credits

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

1.1.6

5 months ago

1.1.5

6 months ago

1.1.4

7 months ago

1.1.3

8 months ago

1.1.2

3 years ago

1.1.1

5 years ago

1.1.0

5 years ago