UNPKG

@native-html/iframe-plugin

Version:

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

14 lines (13 loc) 610 B
import { CustomRendererProps } from 'react-native-render-html'; import { IframeConfig, HTMLIframeProps } from './HTMLIframe'; import type { TBlock } from '@native-html/transient-render-engine'; /** * Extract props for the HTMLIframe component from renderer function arguments. * This function is especially usefull for custom iframe renderers. * * @param props - The props of a custom block renderer. * @param iframeConfig - Override config options. * * @public */ export default function useHtmlIframeProps({ style, tnode }: CustomRendererProps<TBlock>, iframeConfig?: IframeConfig): HTMLIframeProps;