@beletsky/react-native-yandex-ads
Version:
16 lines • 694 B
JavaScript
import { requireNativeComponent } from 'react-native';
import { cacheNativeView, getCachedNativeView } from '../utils';
// @ts-ignore
import RES from '../resources';
let AdContainerNativeComponent;
const globalView = getCachedNativeView();
if (__DEV__ && !globalView) {
AdContainerNativeComponent = requireNativeComponent(RES.VIEW_MANAGERS.CONTAINER);
cacheNativeView(AdContainerNativeComponent);
} else if (__DEV__ && getCachedNativeView()) {
AdContainerNativeComponent = getCachedNativeView();
} else {
AdContainerNativeComponent = requireNativeComponent(RES.VIEW_MANAGERS.CONTAINER);
}
export default AdContainerNativeComponent;
//# sourceMappingURL=AdContainerNativeComponent.js.map