UNPKG

@dynatrace/react-native-plugin

Version:

This plugin gives you the ability to use the Dynatrace Mobile agent in your react native application.

52 lines (51 loc) 2.58 kB
"use strict"; var _a, _b, _c, _d; Object.defineProperty(exports, "__esModule", { value: true }); exports.Pressable = exports.Text = exports.TouchableWithoutFeedback = exports.TouchableNativeFeedback = exports.TouchableHighlight = exports.TouchableOpacity = exports.Button = void 0; const ReactNative = require("react-native"); const React = require("react"); const Types_1 = require("../../model/Types"); exports.Button = React.forwardRef((props, ref) => (React.createElement(ReactNative.Button, Object.assign({}, props, { ref: ref })))); exports.Button._dtInfo = { type: Types_1.Types.Button }; if (typeof ReactNative.TouchableOpacity === 'object') { exports.TouchableOpacity = Object.assign({ _dtInfo: { type: Types_1.Types.TouchableOpacity } }, ReactNative.TouchableOpacity); } else { exports.TouchableOpacity = (_a = class TouchableOpacity extends (ReactNative.TouchableOpacity) { }, _a._dtInfo = { type: Types_1.Types.TouchableOpacity }, _a); } if (typeof ReactNative.TouchableHighlight === 'object') { exports.TouchableHighlight = Object.assign({ _dtInfo: { type: Types_1.Types.TouchableHighlight } }, ReactNative.TouchableHighlight); } else { exports.TouchableHighlight = (_b = class TouchableHighlight extends (ReactNative.TouchableHighlight) { }, _b._dtInfo = { type: Types_1.Types.TouchableHighlight }, _b); } if (typeof ReactNative.TouchableNativeFeedback === 'object') { exports.TouchableNativeFeedback = Object.assign({ _dtInfo: { type: Types_1.Types.TouchableNativeFeedback } }, ReactNative.TouchableNativeFeedback); } else { exports.TouchableNativeFeedback = (_c = class TouchableNativeFeedback extends (ReactNative.TouchableNativeFeedback) { }, _c._dtInfo = { type: Types_1.Types.TouchableNativeFeedback }, _c); } exports.TouchableWithoutFeedback = React.forwardRef((props, ref) => (React.createElement(ReactNative.TouchableWithoutFeedback, Object.assign({}, props, { ref: ref })))); exports.TouchableWithoutFeedback._dtInfo = { type: Types_1.Types.TouchableWithoutFeedback, }; if (typeof ReactNative.Text === 'object') { exports.Text = Object.assign({ _dtInfo: { type: Types_1.Types.Text } }, ReactNative.Text); } else { exports.Text = (_d = class Text extends ReactNative.Text { }, _d._dtInfo = { type: Types_1.Types.Text }, _d); } exports.Pressable = React.forwardRef((props, ref) => (React.createElement(ReactNative.Pressable, Object.assign({}, props, { ref: ref })))); exports.Pressable._dtInfo = { type: Types_1.Types.Pressable };