1.0.3 • Published 8 months ago

@harshrathore5/react-native-flex-table v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

React Native Flex Table

A flexible and customizable table component for React Native applications.

Installation

npm install  @harshrathore5/react-native-flex-table

or

yarn add @harshrathore5/react-native-flex-table

Usage

import { Table } from '@harshrathore5/react-native-flex-table';

// Example data
const data = [
    { name: 'John Doe', age: 30, city: 'New York' },
    { name: 'Jane Smith', age: 25, city: 'Los Angeles' },
    { name: 'Jim Beam', age: 40, city: 'Chicago' },
];

// Example columns
const columns = [
    { key: 'name', title: 'Name' },
    { key: 'age', title: 'Age' },
    { key: 'city', title: 'City' },
];

// Render the table
return (
    <Table
        data={data}
        columns={columns}
    />
    );

Customization

The Table component supports various customization options:

Props

The Table component accepts the following props:

  • data: The data to display in the table.
  • columns: The columns to display in the table.
  • headerStyle: The style for the table header.
  • rowStyle: The style for the table rows.
  • cellStyle: The style for the table cells.
1.0.3

8 months ago

1.0.2

8 months ago

1.0.1

8 months ago