# @types/react-native-table-component

> TypeScript definitions for react-native-table-component

Latest version **1.2.9** (published 2025-11-18) · MIT license · 0 weekly downloads

## Install

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

## Health

**Score 65/100 (B)** — status: stable.

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

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 1.2.9 |
| Published | 2025-11-18 |
| First published | 2020-10-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 7.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51449 |
| Maintainers | types |

## Links

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

## Dependencies (3)

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

## Recent versions

- 1.2.9 (latest) — 2025-11-18
- 1.2.8 (ts5.1) — 2023-12-21
- 1.2.7 (ts4.5) — 2023-11-07
- 1.2.4 (ts4.1) — 2022-04-12
- 1.2.3 (ts3.8) — 2021-11-29
- 1.2.2 (ts3.7) — 2021-10-14
- 1.2.1 (ts3.6) — 2021-07-08
- 1.2.0 (ts3.2) — 2020-10-12
- 1.2.6 — 2023-10-18
- 1.2.5 — 2023-09-27

## README

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

// cell.js

export interface CellProps {
    data?: any;
    width?: number | undefined;
    height?: number | undefined;
    flex?: number | undefined;
    style?: StyleProp<ViewStyle> | undefined;
    textStyle?: StyleProp<TextStyle> | undefined;
    borderStyle?: StyleProp<ViewStyle> | undefined;
}

export class Cell extends Component<CellProps> {}

// cols.js

export interface ColProps {
    data?: any[] | undefined;
    style?: StyleProp<ViewStyle> | undefined;
    width?: number | undefined;
    heightArr?: number[] | undefined;
    textStyle?: StyleProp<TextStyle> | undefined;
}

export class Col extends Component<ColProps> {}

export interface ColsProps {
    data?: any[] | undefined;
    style?: StyleProp<ViewStyle> | undefined;
    widthArr?: number[] | undefined;
    heightArr?: number[] | undefined;
    flexArr?: number[] | undefined;
    textStyle?: StyleProp<TextStyle> | undefined;
}

export class Cols extends Component<ColsProps> {}

// rows.js

export interface RowProps {
    data?: any[] | undefined;
    style?: StyleProp<ViewStyle> | undefined;
    widthArr?: number[] | undefined;
    height?: number | undefined;
    flexArr?: number[] | undefined;
    textStyle?: StyleProp<TextStyle> | undefined;
}

export class Row extends Component<RowProps> {}

export interface RowsProps {
    data?: any[][] | undefined;
    style?: StyleProp<ViewStyle> | undefined;
    widthArr?: number[] | undefined;
    heightArr?: number[] | undefined;
    flexArr?: number[] | undefined;
    textStyle?: StyleProp<TextStyle> | undefined;
}

export class Rows extends Component<RowsProps> {}

// table.js

export interface TableProps {
    children?: ReactNode;
    style?: StyleProp<ViewStyle> | undefined;
    borderStyle?: StyleProp<ViewStyle> | undefined;
}

export class Table extends Component<TableProps> {
    _renderChildren(props: TableProps): ReactNode;
}

export interface TableWrapperProps {
    children?: ReactNode;
    style?: StyleProp<ViewStyle> | undefined;
    borderStyle?: StyleProp<ViewStyle> | undefined;
}

export class TableWrapper extends Component<TableWrapperProps> {
    _renderChildren(props: TableWrapperProps): ReactNode;
}

````

### Additional Details
 * Last updated: Tue, 18 Nov 2025 02:14:41 GMT
 * Dependencies: [@types/react](https://npmjs.com/package/@types/react), [csstype](https://npmjs.com/package/csstype), [react-native](https://npmjs.com/package/react-native)

# Credits
These definitions were written by [David Cole](https://github.com/davidcole1340).

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