Skip to main content

RenderHTMLPassedProps

export
interface RenderHTMLPassedProps {
  renderersProps?: Partial<RenderersProps>;
}

Props passed to internal and custom renderers.

Fields#

renderersProps#

optional
renderersProps?: Partial<RenderersProps>;

Props to use in custom renderers with useRendererProps.

Remarks
  • When you use the hook, you'll get this object deep-merged with default renderers props.
  • Typescript users: If you need to add fields to the ​RenderersProps interface, you should use module augmentation:
declare module 'react-native-render-html' {
interface RenderersProps {
div?: {
customProp: boolean;
};
}
}