@native-html/heuristic-table-plugin
Version:
🔠A 100% native component using heuristics to render tables in react-native-render-html
10 lines (8 loc) • 301 B
text/typescript
import { TRenderEngine } from '@native-html/transient-render-engine';
const engine = new TRenderEngine();
export function createTableTNode(html: string) {
const ttree = engine.buildTTree(html);
const table = ttree.children[0].children[0];
expect(table.tagName).toBe('table');
return table;
}