Skip to main content

Common Examples

MarkdownTable is a rendering target, not a markdown parser: wire it into the table / tr / th / td rules of whatever markdown library your app uses (for example react-native-markdown-display), passing each node’s already-rendered children through as content.Four components, used together, because a table’s row/column structure can’t be expressed as one flat prop:
  • MarkdownTable — the outer bordered, rounded shell with horizontal scroll.
  • MarkdownTableRow — one row; set isHeaderRow on the header row and isLastRow on the final row.
  • MarkdownTableHeaderCell / MarkdownTableCell — the cells within a row.
This matches the web kit’s MarkdownTable (@servicetitan/anvil2-ai-kit), not the general Table internal component — that one is a data grid with sorting and row selection; this one only renders what a markdown parser hands it.

Column widths

React Native has no HTML table-layout auto-sizing, so cells split the row equally (flex: 1) unless every cell in a column is given the same explicit width — the way to keep columns lined up across rows.
A table wider than its container scrolls horizontally; there’s nothing extra to configure for that.

Alignment

align on a cell follows the markdown table’s own column alignment syntax (:--, :-:, --:) — "start" (default), "center", or "end".

Not implemented yet

The web kit’s sticky header-on-scroll and scroll-edge fade gradients aren’t in the React Native version: React Native has no CSS position: sticky, and reproducing the effect needs a measure-and-sync two-scroll-view approach.
Last modified on September 30, 2026