1.2.8 • Published 5 months ago

@types/react-native-table-component v1.2.8

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

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

// Type definitions for react-native-table-component 1.2
// Project: https://github.com/Gil2015/react-native-table-component#readme
// Definitions by: David Cole <https://github.com/davidcole1340>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

import { Component, ReactNode } from 'react';
import { TextStyle, ViewStyle, StyleProp } 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

Credits

These definitions were written by David Cole.

1.2.8

5 months ago

1.2.7

6 months ago

1.2.6

7 months ago

1.2.5

8 months ago

1.2.4

2 years ago

1.2.3

2 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.2.0

4 years ago