From fe177d74a64a07660abc97155df9159c1b39d40a Mon Sep 17 00:00:00 2001 From: "Jules Sam. Randolph" Date: Sat, 16 Jan 2021 15:00:13 -0300 Subject: [PATCH] feat: support WebView and defaultWebViewProps --- packages/render-html/src/shared-types.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/packages/render-html/src/shared-types.ts b/packages/render-html/src/shared-types.ts index 4b13683a2..674d41588 100644 --- a/packages/render-html/src/shared-types.ts +++ b/packages/render-html/src/shared-types.ts @@ -17,7 +17,7 @@ import type { TText, TPhrasing } from '@native-html/transient-render-engine'; -import { ReactElement, ReactNode } from 'react'; +import { ComponentType, ReactElement, ReactNode } from 'react'; import { CSSPropertyNameList, MixedStyleDeclaration @@ -90,11 +90,20 @@ export interface RenderHTMLPassedProps

{ * @remarks "style" will be ignored. Use `baseStyle` instead. */ defaultTextProps?: Omit; + /** + * Default props for WebView elements in the render tree used by plugins. + */ + defaultWebViewProps?: any; /** * Log to the console meaningful information regarding dismissed CSS * properties, ignored tags... etc. */ debug?: boolean; + /** + * The WebView component used by plugins (iframe, table)... + * See [@native-html/plugins](https://github.com/native-html/plugins). + */ + WebView?: ComponentType; } export interface TransientRenderEngineConfig {