You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(table-plugin): support react-native-render-html 6.x
BREAKING CHANGE:
- `extractHtmlTableProps` has been dropped in favor of
`useHtmlTableProps` hook for reusability.
- `IGNORED_TAGS` is not exported anymore, and not necessary.
- requires `react-native` 0.63.x and above
- new `tableModel` export for the new custom renderers API
Copy file name to clipboardExpand all lines: packages/table-plugin/README.md
+33-48Lines changed: 33 additions & 48 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,4 @@
1
-
> **:warning: as of version 1.0.0, this package name has been changed from
2
-
> `react-native-render-html-table-bridge` to `@native-html/table-plugin`**. To
3
-
> migrate, you must add the new package in your project and change imports.
4
-
> Also, [check all breaking changes here](https://github.com/native-html/table-plugin/blob/master/packages/table-plugin/CHANGELOG.md#100-2020-08-19).
1
+
> :warning: This documentation is for **react-native-render-html v6**. For v5 and below, [go here](https://github.com/native-html/plugins/tree/rnrh/5.x/packages/table-plugin#readme).
| [html](./table-plugin.htmltablebaseprops.html.md) | string | The outerHtml of <table> tag. |
21
21
| [htmlAttribs?](./table-plugin.htmltablebaseprops.htmlattribs.md) | HtmlAttributesDictionary | <i>(Optional)</i> Html attributes for this table node. |
Copy file name to clipboardExpand all lines: packages/table-plugin/docs/table-plugin.md
+2-4Lines changed: 2 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@
9
9
| Function | Description |
10
10
| --- | --- |
11
11
|[cssRulesFromSpecs(specs)](./table-plugin.cssrulesfromspecs.md)| Create css rules from a specification object. |
12
-
|[extractHtmlTableProps(htmlAttribs, convertedCSSStyles, passProps, tableConfig)](./table-plugin.extracthtmltableprops.md)| Extract props for the HTMLTable component from renderer function arguments. This function is especially usefull for custom table renderers. |
12
+
|[useHtmlTableProps({ key, style, tnode }, tableConfig)](./table-plugin.usehtmltableprops.md)| Extract props for the HTMLTable component from renderer function arguments. This function is especially usefull for custom table renderers. |
|[HTMLTable](./table-plugin.htmltable.md)| A component capable of rendering a html string which root tag is a table tag. This component should not be used directly, except with custom renderers. |
32
-
|[IGNORED\_TAGS](./table-plugin.ignored_tags.md)| A new list of tags to ignore, which exclude [TABLE\_TAGS](./table-plugin.table_tags.md)<!---->. |
33
-
|[TABLE\_TAGS](./table-plugin.table_tags.md)| All HTML tags associated with a table element. |
34
-
|[table](./table-plugin.table.md)| The renderer function for the iframe element. This renderer is fully scalable, and will adjust to <code>contentWidth</code> and <code>computeEmbeddedMaxWidth</code>. It also features <code>onLinkPress</code>. |
32
+
|[TableRenderer](./table-plugin.tablerenderer.md)| The renderer component for the table element. This renderer is fully scalable, and will adjust to <code>contentWidth</code> and <code>computeEmbeddedMaxWidth</code>. It also features <code>onLinkPress</code>. |
The renderer function for the iframe element. This renderer is fully scalable, and will adjust to `contentWidth` and `computeEmbeddedMaxWidth`<!---->. It also features `onLinkPress`<!---->.
7
+
The renderer component for the table element. This renderer is fully scalable, and will adjust to `contentWidth` and `computeEmbeddedMaxWidth`<!---->. It also features `onLinkPress`<!---->.
0 commit comments