Skip to content

Commit

Permalink
feat: support WebView and defaultWebViewProps
Browse files Browse the repository at this point in the history
  • Loading branch information
jsamr committed Jan 16, 2021
1 parent 691f9cf commit fe177d7
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion packages/render-html/src/shared-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -90,11 +90,20 @@ export interface RenderHTMLPassedProps<P = any> {
* @remarks "style" will be ignored. Use `baseStyle` instead.
*/
defaultTextProps?: Omit<TextProps, 'style'>;
/**
* 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<any>;
}

export interface TransientRenderEngineConfig {
Expand Down

0 comments on commit fe177d7

Please sign in to comment.