Data Table
Mobile-optimized horizontally scrollable data grid with columns, sorting indicators, and striped rows.
v0.2.1NativeWindStyleSheetiOSAndroidExpo Go
Preview
Installation
npx nativra-cli add data-tableWrites DataTable.tsx to components/ui, rewrites imports to your aliases and records hashes in nativra.lock.json, along with 1 registry dependency. Existing files are never overwritten without asking.
Want to try it first? Open it in the playground: a real React Native project in your browser, with this item installed by the CLI.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| columns | ColumnDef<T>[] | required | Array of column definitions with header and accessor |
| data | T[] | required | Data records array to render in table rows |
| striped | boolean | false | Applies alternating zebra-stripe background shading to rows |
| onRowPress | (row: T) => void | undefined | Callback triggered when a table row is pressed |
Source
Exactly what the CLI writes, before your import aliases are applied.