- Implementation
- MarkdownTable Props
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; setisHeaderRowon the header row andisLastRowon the final row.MarkdownTableHeaderCell/MarkdownTableCell— the cells within a row.
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.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 CSSposition: sticky, and reproducing the effect needs a measure-and-sync two-scroll-view approach.