remaxjs / remax
1
import * as React from 'react';
2 1
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 1
const WebView: React.ComponentType<WebViewProps> = createHostComponent<WebViewProps>('web-view', null);
12

13 1
export default WebView;

Read our documentation on viewing source code .

Loading