Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/johan-dutoit/react-native-datatable

A simple data table for react native, working both on Android and iOS.
https://github.com/johan-dutoit/react-native-datatable

android datatable datatables ios react-native

Last synced: about 1 month ago
JSON representation

A simple data table for react native, working both on Android and iOS.

Awesome Lists containing this project

README

        

# react-native-datatable

A simple data table for react native, working both on Android and iOS.

[![NPM Version](https://img.shields.io/npm/v/react-native-datatable.svg?style=flat)](https://www.npmjs.com/package/react-native-datatable)
[![NPM Downloads](https://img.shields.io/npm/dm/react-native-datatable.svg?style=flat)](https://www.npmjs.com/package/react-native-datatable)

## Quick Access
* Installation
* Preview
* Usage
* Properties
* Contributing

## Installation
Install the module with:

```
npm install react-native-datatable --save
```

## Preview

![](https://github.com/Johan-dutoit/react-native-datatable/blob/master/preview.gif)

## Usage
In your code, simply require/import the module:

```js
import DataTable from 'react-native-datatable';
```

###### Top

## Properties

| Prop | Description | Default |
|---|---|---|
|**`fields`**|Field Configuration|`null`|
|**`onSort`**|Function that executes when the user sorts a column|`null`|
|**`dataSource`**|dataSource used to populate the table|`null`|
|**`containerStyle`**|Style for container wrapping the entire view|`null`|
|**`renderHeaderCell`**|Custom render function for the header cell|`null`|
|**`headerStyle`**|Additional style for the header container|`null`|
|**`headerCellStyle`**|Additional style for the header cell|`null`|
|**`headerHighlightColor`**|Highlight color for when user taps the header|`gray`|
|**`cellStyle`**|Additional style for a cell|`null`|

###### Top

## Contributing
Feel free to do pull requests if a certain feature you want is missing. We accept all PR's that are enhancements to the project.

###### Top