@native-html/heuristic-table-plugin
Version:
🔠A 100% native component using heuristics to render tables in react-native-render-html
19 lines (18 loc) • 625 B
TypeScript
import { CustomRendererProps, TBlock } from 'react-native-render-html';
import { HTMLTableProps } from './shared-types';
/**
* Customize the rendering logic of the table renderer via this hook.
*
* @param props - Props from custom renderer props.
* @param options - Customize this hook behavior.
*
* @returns props for the {@link HTMLTable} component.
*
* @public
*/
export default function useHtmlTableProps({ sharedProps, tnode, ...props }: CustomRendererProps<TBlock>, options?: {
/**
* If present, overrides contentWidth from shared props.
*/
overrideContentWidth?: number;
}): HTMLTableProps;