51 lines
1.6 KiB
TypeScript
51 lines
1.6 KiB
TypeScript
// Module ID: 14479
|
|
// Function ID: 14480
|
|
// Name: componentDidMount
|
|
// Dependencies: [19, 17, 21, 4303, 4013, 5823, 2]
|
|
|
|
// Module 14479 (componentDidMount)
|
|
import { View } from "get ActivityIndicator";
|
|
import { jsx } from "jsxProd";
|
|
import createCacheKey from "createCacheKey";
|
|
import { PureComponent } from "noop";
|
|
import importAllResult from "noop";
|
|
|
|
const require = arg1;
|
|
let closure_4 = createCacheKey.createLegacyClassComponentStyles({ container: { flex: 1, alignItems: "center", justifyContent: "center" } });
|
|
class UntouchableAlert extends PureComponent {
|
|
}
|
|
const prototype = UntouchableAlert.prototype;
|
|
prototype["componentDidMount"] = function componentDidMount() {
|
|
const self = this;
|
|
if (!this.props.loading) {
|
|
self.closeAlert();
|
|
}
|
|
};
|
|
prototype["componentDidUpdate"] = function componentDidUpdate(loading) {
|
|
const self = this;
|
|
loading = this.props.loading;
|
|
if (!tmp) {
|
|
self.closeAlert();
|
|
}
|
|
};
|
|
prototype["closeAlert"] = function closeAlert() {
|
|
const self = this;
|
|
setImmediate(() => {
|
|
const props = self.props;
|
|
return props.onClose();
|
|
});
|
|
};
|
|
prototype["render"] = function render() {
|
|
let tmp2 = null;
|
|
if (this.props.loading) {
|
|
const obj = { style: null, children: null };
|
|
obj[0] = tmp.container;
|
|
obj[1] = jsx(require(5823) /* ActivityIndicator */.ActivityIndicator, {});
|
|
tmp2 = <View style={null}>{null}</View>;
|
|
}
|
|
return tmp2;
|
|
};
|
|
UntouchableAlert.contextType = require("ManaContext").ThemeContext;
|
|
const result = require("jsxProd").fileFinishedImporting("components_native/common/UntouchableAlert.tsx");
|
|
|
|
export default UntouchableAlert;
|