95 lines
2.9 KiB
JavaScript
95 lines
2.9 KiB
JavaScript
// Module ID: 1189
|
|
// Function ID: 1190
|
|
// Name: _isNativeReflectConstruct
|
|
// Dependencies: [41, 42, 93, 95, 98, 19, 17, 1002, 997]
|
|
// Exports: getRNSentryOnDrawReporter
|
|
|
|
// Module 1189 (_isNativeReflectConstruct)
|
|
import _inheritsDefault from "_inherits" /* 98 */;
|
|
import closure_2 from "_classCallCheck" /* 41 */;
|
|
import closure_3 from "_possibleConstructorReturn" /* 93 */;
|
|
import closure_4 from "_getPrototypeOf" /* 95 */;
|
|
import importDefaultResult from "_createClass" /* 42 */;
|
|
import importAllResult from "noop" /* 19 */;
|
|
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
|
|
|
|
const RNSentryOnDrawReporterNoop = arg1;
|
|
function _isNativeReflectConstruct() {
|
|
try {
|
|
const _Boolean = Boolean;
|
|
const call = valueOf.call;
|
|
const _Reflect = Reflect;
|
|
const _Boolean2 = Boolean;
|
|
if (typeof call === "unknown") {
|
|
let callResult = valueOf();
|
|
} else {
|
|
callResult = call(constructResult);
|
|
}
|
|
closure_0 = !callResult;
|
|
_isNativeReflectConstruct = function _isNativeReflectConstruct() {
|
|
return closure_0;
|
|
};
|
|
return _isNativeReflectConstruct();
|
|
} catch (err) {
|
|
}
|
|
}
|
|
let c5 = importAllResult;
|
|
({ UIManager, View: closure_6 } = get_ActivityIndicator);
|
|
const RNSentryOnDrawReporter = "RNSentryOnDrawReporter";
|
|
const tmp6 = UIManager.hasViewManagerConfig && UIManager.hasViewManagerConfig("RNSentryOnDrawReporter");
|
|
let closure_10 = tmp6;
|
|
class RNSentryOnDrawReporterNoop {
|
|
constructor() {
|
|
self = this;
|
|
tmp = closure_2(this, RNSentryOnDrawReporterNoop);
|
|
tmp2 = closure_4;
|
|
obj = closure_4(RNSentryOnDrawReporterNoop);
|
|
tmp3 = closure_3;
|
|
if (_isNativeReflectConstruct()) {
|
|
tmp7 = globalThis;
|
|
_Reflect = Reflect;
|
|
tmp8 = arguments;
|
|
constructResult = Reflect.construct(obj, arguments, tmp2(self).constructor);
|
|
} else {
|
|
tmp4 = arguments;
|
|
tmp5 = arguments;
|
|
constructResult = obj(...arguments);
|
|
}
|
|
return tmp3(self, constructResult);
|
|
}
|
|
}
|
|
_inheritsDefault(RNSentryOnDrawReporterNoop, importAllResult.Component);
|
|
const items = [
|
|
{
|
|
key: "render",
|
|
value: function render() {
|
|
return <closure_6 {......Object.assign({}, this.props)} />;
|
|
}
|
|
}
|
|
];
|
|
let closure_11 = importDefaultResult(RNSentryOnDrawReporterNoop, items);
|
|
|
|
export const nativeComponentExists = tmp6;
|
|
export const getRNSentryOnDrawReporter = () => {
|
|
if (result) {
|
|
return result;
|
|
} else {
|
|
if (!obj.isExpoGo()) {
|
|
if (closure_10) {
|
|
const ReactNative = tmp(997).ReactNativeLibraries.ReactNative;
|
|
let prop;
|
|
if (null !== ReactNative) {
|
|
if (undefined !== ReactNative) {
|
|
prop = ReactNative.requireNativeComponent;
|
|
}
|
|
}
|
|
if (prop) {
|
|
const ReactNative2 = tmp(997).ReactNativeLibraries.ReactNative;
|
|
result = ReactNative2.requireNativeComponent(RNSentryOnDrawReporter);
|
|
}
|
|
}
|
|
}
|
|
result = closure_11;
|
|
obj = RNSentryOnDrawReporterNoop(1002);
|
|
}
|
|
};
|