# @types/react-native-platform-touchable

> TypeScript definitions for react-native-platform-touchable

Latest version **1.1.7** (published 2026-09-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/react-native-platform-touchable
pnpm add @types/react-native-platform-touchable
yarn add @types/react-native-platform-touchable
bun add @types/react-native-platform-touchable
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; no vulnerabilities; recently updated; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 1.1.7 |
| Published | 2026-09-09 |
| First published | 2019-01-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 6.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51466 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/react-native-platform-touchable
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-native-platform-touchable
- npm.io page: https://npm.io/package/@types/react-native-platform-touchable

## Dependencies (2)

- [@types/react](https://npm.io/package/@types/react.md) *
- [react-native](https://npm.io/package/react-native.md) *

## Recent versions

- 1.1.7 (latest) — 2026-09-09
- 1.1.6 (ts5.5) — 2023-12-21
- 1.1.5 (ts4.5) — 2023-11-07
- 1.1.2 (ts4.0) — 2021-07-08
- 1.1.1 (ts3.0) — 2019-05-22
- 1.1.4 — 2023-10-18
- 1.1.3 — 2023-09-27
- 1.1.0 — 2019-01-25

## README

# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-native-platform-touchable/index.d.ts)
````ts
import * as React from "react";
import { TouchableWithoutFeedbackProps } from "react-native";

// These were removed from react-native's bundled types; they mirror the
// TouchableNativeFeedback background values this library accepts and returns.
export interface ThemeAttributeBackgroundPropType {
    type: "ThemeAttrAndroid";
    attribute: "selectableItemBackground" | "selectableItemBackgroundBorderless";
}

export interface RippleBackgroundPropType {
    type: "RippleAndroid";
    color?: number | null | undefined;
    borderless?: boolean | undefined;
}

export type BackgroundPropType = ThemeAttributeBackgroundPropType | RippleBackgroundPropType;

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: Wed, 09 Sep 2026 17:03:49 GMT
 * Dependencies: [@types/react](https://npmjs.com/package/@types/react), [react-native](https://npmjs.com/package/react-native)

# Credits
These definitions were written by [Toni Granados](https://github.com/tngranados), and [Joel Nordström](https://github.com/iwikal).

---
_Source: https://npm.io/package/@types/react-native-platform-touchable · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
