@native-html/table-plugin
Version:
🔠A WebView-based plugin to render tables in react-native-render-html
14 lines (13 loc) • 596 B
TypeScript
import { CustomRendererProps } from 'react-native-render-html';
import { HTMLTableProps, TableConfig } from './types';
import type { TBlock } from '@native-html/transient-render-engine';
/**
* Extract props for the HTMLTable component from renderer function arguments.
* This function is especially usefull for custom table renderers.
*
* @param props - The props of a custom block renderer.
* @param tableConfig - Override config options.
*
* @public
*/
export default function useHtmlTableProps({ style, tnode }: CustomRendererProps<TBlock>, tableConfig?: TableConfig): HTMLTableProps;