decord/source/13537__isNativeReflectConstruct.js

90 lines
2.6 KiB
JavaScript
Raw Normal View History

2026-07-24 07:16:23 +00:00
// Module ID: 13537
// Function ID: 104142
2026-07-20 16:05:17 +00:00
// Name: _isNativeReflectConstruct
2026-07-24 07:16:23 +00:00
// Dependencies: [6, 7, 15, 17, 18, 31, 33, 13538, 13541, 4482]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-24 07:16:23 +00:00
// Module 13537 (_isNativeReflectConstruct)
2026-07-23 10:11:24 +00:00
import jsxProd from "jsxProd";
import ReanimatedNativeStackScreen from "ReanimatedNativeStackScreen";
import _possibleConstructorReturn from "_possibleConstructorReturn";
import _getPrototypeOf from "_getPrototypeOf";
import _inherits from "_inherits";
import { jsx } from "jsxProd";
const require = arg1;
2026-07-20 16:05:17 +00:00
function _isNativeReflectConstruct() {
let closure_0 = !valueOf.call(Reflect.construct(Boolean, [], () => {
}));
function _isNativeReflectConstruct() {
return closure_0;
}
const result = _isNativeReflectConstruct();
}
2026-07-23 10:11:24 +00:00
let closure_9 = ((Component) => {
2026-07-20 16:05:17 +00:00
class ReanimatedScreenWrapper {
constructor() {
self = this;
2026-07-23 10:11:24 +00:00
tmp = outer1_3(this, apply);
2026-07-20 16:05:17 +00:00
length = arguments.length;
array = new Array(length);
for (let num = 0; num < length; num = num + 1) {
array[num] = arguments[num];
}
items = [];
combined = items.concat(array);
2026-07-23 10:11:24 +00:00
obj = outer1_6(apply);
tmp3 = outer1_5;
if (outer1_10()) {
2026-07-20 16:05:17 +00:00
if (!combined) {
combined = [];
}
2026-07-23 10:11:24 +00:00
tmp5 = outer1_6;
constructResult = Reflect.construct(obj, combined, outer1_6(self).constructor);
2026-07-20 16:05:17 +00:00
} else {
constructResult = obj.apply(self, combined);
}
tmp3Result = tmp3(self, constructResult);
2026-07-23 10:11:24 +00:00
apply = tmp3Result;
2026-07-20 16:05:17 +00:00
tmp3Result.ref = null;
tmp3Result.setRef = (ref) => {
tmp3Result.ref = ref;
if (null != tmp3Result.props.onComponentRef) {
const props = tmp3Result.props;
props.onComponentRef(ref);
}
};
return tmp3Result;
}
}
callback2(ReanimatedScreenWrapper, Component);
let obj = {
key: "setNativeProps",
value: function setNativeProps(arg0) {
2026-07-23 10:11:24 +00:00
if (null != this.ref) {
2026-07-20 16:05:17 +00:00
ref.setNativeProps(arg0);
}
}
};
2026-07-23 10:11:24 +00:00
let items = [obj, ];
2026-07-20 16:05:17 +00:00
obj = {
key: "render",
value: function render() {
const self = this;
if (this.props.isNativeStack) {
let tmpResult = tmp(tmp2[7]);
} else {
tmpResult = tmp(tmp2[8]);
}
2026-07-23 10:11:24 +00:00
return outer1_8(tmpResult, Object.assign({}, self.props, { ref: self.setRef }));
2026-07-20 16:05:17 +00:00
}
};
items[1] = obj;
return callback(ReanimatedScreenWrapper, items);
2026-07-23 10:11:24 +00:00
})(require("result").Component);
2026-07-20 16:05:17 +00:00
export default function ReanimatedScreenProvider(children) {
2026-07-23 10:11:24 +00:00
return jsx(require(4482) /* Animated */.ScreenContext.Provider, { value: closure_9, children: children.children });
2026-07-20 16:05:17 +00:00
};