@beletsky/react-native-yandex-ads
Version:
25 lines (23 loc) • 1.03 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _reactNative = require("react-native");
var _utils = require("../utils");
var _resources = _interopRequireDefault(require("../resources"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
// @ts-ignore
let AdContainerNativeComponent;
const globalView = (0, _utils.getCachedNativeView)();
if (__DEV__ && !globalView) {
AdContainerNativeComponent = (0, _reactNative.requireNativeComponent)(_resources.default.VIEW_MANAGERS.CONTAINER);
(0, _utils.cacheNativeView)(AdContainerNativeComponent);
} else if (__DEV__ && (0, _utils.getCachedNativeView)()) {
AdContainerNativeComponent = (0, _utils.getCachedNativeView)();
} else {
AdContainerNativeComponent = (0, _reactNative.requireNativeComponent)(_resources.default.VIEW_MANAGERS.CONTAINER);
}
var _default = AdContainerNativeComponent;
exports.default = _default;
//# sourceMappingURL=AdContainerNativeComponent.js.map