@datadog/mobile-react-native-webview
Version:
A client-side React Native module to interact with react-native-webview and Datadog
17 lines (12 loc) • 621 B
text/typescript
/*
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
* This product includes software developed at Datadog (https://www.datadoghq.com/).
* Copyright 2016-Present Datadog, Inc.
*/
import type { CommonNativeWebViewProps } from 'react-native-webview/lib/WebViewTypes';
import { requireNativeComponent } from 'react-native';
import { isNewArchitecture } from '../utils/env-utils';
const NativeDdWebView = !isNewArchitecture()
? requireNativeComponent<CommonNativeWebViewProps>('DdReactNativeWebView')
: undefined;
export { NativeDdWebView };