How to use the @times-components/utils.screenWidthInPixels function in @times-components/utils

To help you get started, we’ve selected a few @times-components/utils examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github newsuk / times-components / packages / article-list / src / article-list.js View on Github external
constructor(props) {
    super(props);
    this.onViewableItemsChanged = this.onViewableItemsChanged.bind(this);
    this.fetchMoreOnEndReached = this.fetchMoreOnEndReached.bind(this);
    this.renderItem = this.renderItem.bind(this);
    this.state = {
      loadingMore: false,
      loadMoreError: null,
      width: normaliseWidthForAssetRequestCache(screenWidthInPixels())
    };
  }