UNPKG

@native-html/iframe-plugin

Version:

🌐 A WebView-based plugin to render iframes in react-native-render-html

26 lines (15 loc) 899 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@native-html/iframe-plugin](./iframe-plugin.md) &gt; [useHtmlIframeProps](./iframe-plugin.usehtmliframeprops.md) ## useHtmlIframeProps() function Extract props for the HTMLIframe component from renderer function arguments. This function is especially usefull for custom iframe renderers. <b>Signature:</b> ```typescript export default function useHtmlIframeProps({ style, tnode }: CustomRendererProps<TBlock>, iframeConfig?: IframeConfig): HTMLIframeProps; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | { style, tnode } | CustomRendererProps&lt;TBlock&gt; | | | iframeConfig | [IframeConfig](./iframe-plugin.iframeconfig.md) | Override config options. | <b>Returns:</b> [HTMLIframeProps](./iframe-plugin.htmliframeprops.md)