# @types/react-native-button

> TypeScript definitions for react-native-button

Latest version **3.0.5** (published 2023-12-21) · MIT license · 0 weekly downloads

## Install

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

## Health

**Score 45/100 (D)** — status: abandoned.

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

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 3.0.5 |
| Published | 2023-12-21 |
| First published | 2021-01-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51448 |
| Maintainers | types |

## Links

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

## Dependencies (2)

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

## Recent versions

- 3.0.5 (latest) — 2023-12-21
- 3.0.4 (ts4.5) — 2023-11-07
- 3.0.1 (ts3.6) — 2021-07-08
- 3.0.0 (ts3.4) — 2021-01-30
- 3.0.3 — 2023-10-18
- 3.0.2 — 2023-09-27

## README

# Installation
> `npm install --save @types/react-native-button`

# Summary
This package contains type definitions for react-native-button (https://github.com/ide/react-native-button).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-native-button.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-native-button/index.d.ts)
````ts
import { Component } from "react";
import { StyleProp, TextProps, TextStyle, TouchableOpacityProps, ViewStyle } from "react-native";

export interface ButtonProps extends TouchableOpacityProps, Pick<TextProps, "allowFontScaling"> {
    containerStyle?: StyleProp<ViewStyle> | undefined;
    disabledContainerStyle?: StyleProp<ViewStyle> | undefined;
    style?: StyleProp<TextStyle> | undefined;
    styleDisabled?: StyleProp<TextStyle> | undefined;
    childGroupStyle?: StyleProp<ViewStyle> | undefined;
    androidBackground?: object | undefined;
}

export default class Button extends Component<ButtonProps> {
    constructor(props: object);
}

````

### Additional Details
 * Last updated: Thu, 21 Dec 2023 19:06:51 GMT
 * Dependencies: [@types/react](https://npmjs.com/package/@types/react), [react-native](https://npmjs.com/package/react-native)

# Credits
These definitions were written by [mkchung](https://github.com/mkchung).

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