expo
Version:
13 lines (9 loc) • 348 B
text/typescript
/**
* A re-export of `react-native-webview` that supports optional dependency.
*/
let module: undefined | typeof import('react-native-webview').WebView;
try {
module = require('react-native-webview').WebView;
} catch {}
export default module;
export type { WebView as RNWebView, WebViewProps as RNWebViewProps } from 'react-native-webview';