From be62b5b2d4c09c855db74a92bc15fb91d0312e2c Mon Sep 17 00:00:00 2001 From: Marco Saia Date: Tue, 15 Oct 2024 13:52:51 +0200 Subject: [PATCH] Using Objective-C++ for native component --- .../ios/Sources/{RCTDatadogWebView.m => RCTDatadogWebView.mm} | 0 .../{RCTDatadogWebViewManager.m => RCTDatadogWebViewManager.mm} | 0 packages/react-native-webview/src/index.tsx | 2 -- 3 files changed, 2 deletions(-) rename packages/react-native-webview/ios/Sources/{RCTDatadogWebView.m => RCTDatadogWebView.mm} (100%) rename packages/react-native-webview/ios/Sources/{RCTDatadogWebViewManager.m => RCTDatadogWebViewManager.mm} (100%) diff --git a/packages/react-native-webview/ios/Sources/RCTDatadogWebView.m b/packages/react-native-webview/ios/Sources/RCTDatadogWebView.mm similarity index 100% rename from packages/react-native-webview/ios/Sources/RCTDatadogWebView.m rename to packages/react-native-webview/ios/Sources/RCTDatadogWebView.mm diff --git a/packages/react-native-webview/ios/Sources/RCTDatadogWebViewManager.m b/packages/react-native-webview/ios/Sources/RCTDatadogWebViewManager.mm similarity index 100% rename from packages/react-native-webview/ios/Sources/RCTDatadogWebViewManager.m rename to packages/react-native-webview/ios/Sources/RCTDatadogWebViewManager.mm diff --git a/packages/react-native-webview/src/index.tsx b/packages/react-native-webview/src/index.tsx index b7473291c..82950af19 100644 --- a/packages/react-native-webview/src/index.tsx +++ b/packages/react-native-webview/src/index.tsx @@ -39,8 +39,6 @@ const WebViewComponent = (props: Props, ref: React.Ref>) => { (props.logUserCodeErrors ?? false) ) { NativeDdLogs?.error(ddMessage.message, {}); - // TODO: Log Error through Turbo Registry native call. - // DdLogs.error(ddMessage.message, 'USER_CODE_WEBVIEW_ERROR'); } };