<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Dynatrace React Native plugin fails with “Cannot call a class as a function” after upgrading to React Native 0.81 in Open Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Open-Q-A/Dynatrace-React-Native-plugin-fails-with-Cannot-call-a-class-as/m-p/285844#M37538</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We are aware of the issue. Solution is internally already working and will be released ASAP.&lt;/P&gt;&lt;P&gt;RN 0.81 changed the Text which is breaking the instrumentation for those parts.&lt;/P&gt;</description>
    <pubDate>Fri, 12 Sep 2025 04:54:41 GMT</pubDate>
    <dc:creator>matthias_hochri</dc:creator>
    <dc:date>2025-09-12T04:54:41Z</dc:date>
    <item>
      <title>Dynatrace React Native plugin fails with “Cannot call a class as a function” after upgrading to React Native 0.81</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Dynatrace-React-Native-plugin-fails-with-Cannot-call-a-class-as/m-p/285721#M37532</link>
      <description>&lt;P class=""&gt;Hi all,&lt;/P&gt;&lt;P class=""&gt;I recently upgraded my project from &lt;SPAN class=""&gt;&lt;STRONG&gt;React Native 0.72.2&lt;/STRONG&gt;&lt;/SPAN&gt; to &lt;SPAN class=""&gt;&lt;STRONG&gt;React Native 0.81.0&lt;/STRONG&gt;&lt;/SPAN&gt;.&lt;/P&gt;&lt;P class=""&gt;With RN 0.72.2 the Dynatrace React Native plugin worked fine, but after upgrading, the app crashes immediately on startup with the following error:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;Error:&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Render Error
Cannot call a class as a function&lt;/LI-CODE&gt;&lt;P class=""&gt;&lt;STRONG&gt;Source (Touchables.js:45:23):&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;exports.Text = (_d = class Text extends ReactNative.Text {
  },
  _d._dtInfo = { type: Types_1.Types.Text },
  _d);&lt;/LI-CODE&gt;&lt;P class=""&gt;&lt;STRONG&gt;Component Stack:&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;&amp;lt;Text /&amp;gt;                Touchables.js:45
&amp;lt;AppText /&amp;gt;             AppText.tsx:13
&amp;lt;ScrollView /&amp;gt;          ScrollView.js:730
&amp;lt;ErrorFallback /&amp;gt;       ProvidersWrapper.tsx:74
&amp;lt;ErrorBoundary /&amp;gt;       react-error-boundary.js:11
&amp;lt;SafeAreaProvider /&amp;gt;    SafeAreaContext.tsx:35
&amp;lt;Provider /&amp;gt;            react-redux.legacy-esm.js:910
&amp;lt;View_withRef /&amp;gt;        View.js:28
...&lt;/LI-CODE&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;babel.config.js&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;module.exports = {
  presets: ['module:@react-native/babel-preset'],
  plugins: [
    [
      '@babel/plugin-transform-react-jsx',
      {
        runtime: 'automatic',
        importSource: '@dynatrace/react-native-plugin',
      },
    ],
    ['react-native-reanimated/plugin'],
  ],
};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;metro.config.js&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const { getDefaultConfig, mergeConfig } = require('@react-native/metro-config');

const config = {
  transformer: {
    babelTransformerPath: require.resolve(
      '@dynatrace/react-native-plugin/lib/dynatrace-transformer',
    ),
  },
  reporter: require('@dynatrace/react-native-plugin/lib/dynatrace-reporter'),
};

module.exports = mergeConfig(getDefaultConfig(__dirname), config);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;dynatrace.config.js&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;module.exports = {
  react: {
    debug: true,
    autoStart: false,
    errorHandler: {
      enabled: true,
      reportFatalErrorAsCrash: true,
    },
    lifecycle: {
      includeUpdate: false,
      instrument: filename =&amp;gt; false,
    },
    input: {
      instrument: filename =&amp;gt; true,
    },
  },
  capture: { networkRequests: true },
  android: {
    enabled: true,
    config: `
      dynatrace {
        configurations {
          defaultConfig {
            autoStart.enabled false
          }
        }
      }
    `,
  },
  ios: {
    enabled: true,
    config: `
      &amp;lt;key&amp;gt;DTXAutoStart&amp;lt;/key&amp;gt;
      &amp;lt;false/&amp;gt;
    `,
  },
};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Sep 2025 21:00:07 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Dynatrace-React-Native-plugin-fails-with-Cannot-call-a-class-as/m-p/285721#M37532</guid>
      <dc:creator>theahmadsami</dc:creator>
      <dc:date>2025-09-10T21:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: Dynatrace React Native plugin fails with “Cannot call a class as a function” after upgrading to React Native 0.81</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Dynatrace-React-Native-plugin-fails-with-Cannot-call-a-class-as/m-p/285844#M37538</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We are aware of the issue. Solution is internally already working and will be released ASAP.&lt;/P&gt;&lt;P&gt;RN 0.81 changed the Text which is breaking the instrumentation for those parts.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Sep 2025 04:54:41 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Dynatrace-React-Native-plugin-fails-with-Cannot-call-a-class-as/m-p/285844#M37538</guid>
      <dc:creator>matthias_hochri</dc:creator>
      <dc:date>2025-09-12T04:54:41Z</dc:date>
    </item>
  </channel>
</rss>

