1
import * as React from 'react';
2 3
import createHostComponent from '../../createHostComponent';
3
import { Event } from '../../types';
4

5
export interface WebViewProps extends React.AriaAttributes {
6
  id?: string;
7
  src: string;
8
  onMessage?: (event: Event) => void;
9
}
10

11 3
const WebView: React.ComponentType<WebViewProps> = createHostComponent<WebViewProps>('web-view', null);
12

13 3
export default WebView;

Read our documentation on viewing source code .

Loading