@dynatrace/react-native-plugin 2.293.1 → 2.293.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1414,9 +1414,10 @@ If you are struggling with a problem, submit a support ticket to Dynatrace (supp
1414
1414
  <br/><br/>
1415
1415
  ## Changelog
1416
1416
 
1417
- 2.293.1
1417
+ 2.293.2
1418
1418
  * Update Android (8.293.1.1003) & iOS Agent (8.293.1.1003)
1419
1419
  * Preventing double instrumentation of touchables
1420
+ * Fixed instrumentation of Text component because of missing static access
1420
1421
 
1421
1422
  2.291.2
1422
1423
  * Update Android (8.291.1.1002) & iOS Agent (8.291.1.1004)
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- var _a, _b, _c;
2
+ var _a, _b, _c, _d;
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.Pressable = exports.Text = exports.TouchableWithoutFeedback = exports.TouchableNativeFeedback = exports.TouchableHighlight = exports.TouchableOpacity = exports.Button = void 0;
5
5
  const ReactNative = require("react-native");
@@ -36,7 +36,14 @@ else {
36
36
  }
37
37
  exports.TouchableWithoutFeedback = React.forwardRef((props, ref) => React.createElement(ReactNative.TouchableWithoutFeedback, Object.assign({}, props, { ref: ref })));
38
38
  exports.TouchableWithoutFeedback._dtInfo = { type: Types_1.Types.TouchableWithoutFeedback };
39
- exports.Text = React.forwardRef((props, ref) => React.createElement(ReactNative.Text, Object.assign({}, props, { ref: ref })));
40
- exports.Text._dtInfo = { type: Types_1.Types.Text };
39
+ if (typeof ReactNative.Text === 'object') {
40
+ exports.Text = Object.assign({ _dtInfo: { type: Types_1.Types.Text } }, ReactNative.Text);
41
+ }
42
+ else {
43
+ exports.Text = (_d = class Text extends ReactNative.Text {
44
+ },
45
+ _d._dtInfo = { type: Types_1.Types.Text },
46
+ _d);
47
+ }
41
48
  exports.Pressable = React.forwardRef((props, ref) => React.createElement(ReactNative.Pressable, Object.assign({}, props, { ref: ref })));
42
49
  exports.Pressable._dtInfo = { type: Types_1.Types.Pressable };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynatrace/react-native-plugin",
3
- "version": "2.293.1",
3
+ "version": "2.293.2",
4
4
  "description": "This plugin gives you the ability to use the Dynatrace Mobile agent in your react native application.",
5
5
  "main": "index.js",
6
6
  "types": "typings/react-native-dynatrace.d.ts",
@@ -72,7 +72,7 @@
72
72
  "license": "SEE LICENSE IN LICENSE.md",
73
73
  "dependencies": {
74
74
  "@babel/runtime": "^7.24.7",
75
- "jscodeshift": "^0.16.0",
75
+ "jscodeshift": "^0.16.1",
76
76
  "plist": "^3.1.0",
77
77
  "proxy-polyfill": "^0.3.2",
78
78
  "semver": "^7.6.2"