0.0.8 • Published 7 years ago
react-native-datatable v0.0.8
react-native-datatable
A simple data table for react native, working both on Android and iOS.
Quick Access
- Installation
- Preview
- Usage
- Properties
- Contributing
Installation
Install the module with:
npm install react-native-datatable --save
Preview
Usage
In your code, simply require/import the module:
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.