How to use the @times-components/tracking.withTrackScrollDepth function in @times-components/tracking

To help you get started, we’ve selected a few @times-components/tracking 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.web.js View on Github external
observed,
                  registerNode
                })}
          
        )}
      
    );
  }
}

ArticleList.propTypes = propTypes;
ArticleList.defaultProps = defaultProps;

export { default as ArticleListPageError } from "./article-list-page-error";
export { ArticleListEmptyState };
export default withTrackScrollDepth(ArticleList);
github newsuk / times-components / packages / article-skeleton / src / article-skeleton.js View on Github external
...articleSkeletonPropTypes,
  interactiveConfig: PropTypes.shape({}),
  onCommentGuidelinesPress: PropTypes.func.isRequired,
  onCommentsPress: PropTypes.func.isRequired,
  onLinkPress: PropTypes.func.isRequired,
  onRelatedArticlePress: PropTypes.func.isRequired,
  onTwitterLinkPress: PropTypes.func.isRequired,
  onVideoPress: PropTypes.func.isRequired,
  onImagePress: PropTypes.func.isRequired
};
ArticleSkeleton.defaultProps = {
  ...articleSkeletonDefaultProps,
  interactiveConfig: {}
};

export default articleTrackingContext(withTrackScrollDepth(ArticleSkeleton));
github newsuk / times-components / packages / section / src / section.js View on Github external
onPuzzleBarPress: PropTypes.func,
  onPuzzlePress: PropTypes.func,
  onViewed: PropTypes.func,
  receiveChildList: PropTypes.func,
  section: PropTypes.shape({}).isRequired
};

Section.defaultProps = {
  onArticlePress: () => {},
  onPuzzleBarPress: () => {},
  onPuzzlePress: () => {},
  onViewed: () => {},
  receiveChildList: () => {}
};

export default withTrackingContext(withTrackScrollDepth(Section));
github newsuk / times-components / packages / article / src / article.web.js View on Github external
/>
                  
                
              
            )}
          
        
      
    );
  }
}

Article.propTypes = articlePropTypes;
Article.defaultProps = articleDefaultProps;

export default articleTrackingContext(withTrackScrollDepth(Article));
github newsuk / times-components / packages / article-skeleton / src / article-skeleton.web.js View on Github external
);
  }
}

ArticleSkeleton.propTypes = {
  ...articleSkeletonPropTypes,
  paidContentClassName: PropTypes.string
};
ArticleSkeleton.defaultProps = articleSkeletonDefaultProps;

export { KeylineItem, ArticleKeylineItem } from "./keylines";

export { ArticleLink };

export default articleTrackingContext(withTrackScrollDepth(ArticleSkeleton));
github newsuk / times-components / packages / article-list / src / article-list.js View on Github external
onViewableItemsChanged={onViewed ? this.onViewableItemsChanged : null}
        renderItem={this.renderItem}
        testID="scroll-view"
        viewabilityConfig={viewabilityConfig}
        windowSize={5}
      />
    );
  }
}

ArticleList.propTypes = propTypes;
ArticleList.defaultProps = defaultProps;

export { default as ArticleListPageError } from "./article-list-page-error";
export { ArticleListEmptyState };
export default withTrackScrollDepth(ArticleList);

@times-components/tracking

Tracking

BSD-3-Clause
Latest version published 4 months ago

Package Health Score

78 / 100
Full package analysis