1
import * as React from 'react';
2 4
import { createHostComponent } from '@remax/shared';
3

4
import { BaseProps } from '../../types/component';
5

6
export interface WebViewProps extends BaseProps {
7
  src?: string;
8
  onMessage?: (e: any) => void;
9
  progressbarColor?: string;
10
}
11

12 4
export const WebView: React.ComponentType<WebViewProps> = createHostComponent<WebViewProps>('web-view');
13

14 4
WebView.defaultProps = {
15
  progressbarColor: '#51a0d8',
16
};

Read our documentation on viewing source code .

Loading