This package provides fundamental table components for React Native applications, enabling developers to display tabular data using `Table`, `Row`, `Rows`, `Col`, `Cols`, `Cell`, and `TableWrapper` components. The current stable version is 1.2.2. This library offers a straightforward API for structuring tables with customizable styling through React Native's `StyleSheet`. A significant aspect of this package is its current status: it is explicitly no longer maintained by the original author, who has offered to transfer ownership. This means there is no ongoing release cadence or active support. Key differentiators, aside from its unmaintained status, include its basic and unopinionated approach to table rendering, focusing solely on layout primitives rather than advanced features like sorting, filtering, or pagination, which would need to be implemented separately. It provides a simple structure for displaying static or dynamically generated data in a grid format suitable for mobile interfaces.
npm install react-native-table-componentVerified import paths — ran on the pinned version, not inferred.
This example demonstrates a basic table with a header row and multiple data rows, showcasing fundamental component usage and styling in a React Native application.
Developers should be aware that they might need to fork the repository for critical updates or consider alternative maintained table libraries for production applications requiring ongoing support.
Update all instances of `TableWraper` to `TableWrapper` in your code after upgrading to v1.0.3 or later.
Explicitly set `borderStyle={{borderWidth: 1}}` (or your desired width) on your `Table` components to restore previous visual behavior after upgrading to v1.2.1 or later.Review data handling for table cells, especially if cells contain custom components or complex rendering logic. No direct fix needed unless custom components are causing unexpected behavior.
Ensure you are using ES module imports: `import { Table, Row, Rows } from 'react-native-table-component';`Verify all imported component names are spelled correctly and match their exported names exactly, including casing. Specifically, ensure `TableWrapper` is used if your package version is v1.0.3 or higher.