How to use the @times-components/utils.getHeadline 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-main-standard / src / article-main-standard.js View on Github external
onImagePress={onImagePress}
                onVideoPress={onVideoPress}
                renderCaption={({ caption }) =>
                  isTablet && 
                }
                style={[styles.leadAsset, isTablet && styles.leadAssetTablet]}
                width={Math.min(parentProps.width, tabletWidth)}
              />
            
          );
          const header = (
            
              
              
            
          );
          return (
github newsuk / times-components / packages / article-main-comment / src / article-main-comment.web.js View on Github external
const authorImage =
      bylines &&
      bylines.length > 0 &&
      bylines[0].image &&
      Object.keys(bylines[0].image).length !== 0 &&
      bylines[0].image.crop
        ? bylines[0].image.crop.url
        : null;

    return (
      
    );
  }
github newsuk / times-components / packages / article-main-standard / src / article-main-standard.web.js View on Github external
publishedTime,
      shortHeadline,
      standfirst,
      topics
    } = article;

    const metaProps = { bylines, publicationName, publishedTime };

    return (
      
        
          
            
          
          
            
github newsuk / times-components / packages / article-magazine-comment / src / article-magazine-comment.js View on Github external
{({ isTablet }) => (
          
            
             }
              style={[
                styles.leadAssetContainer,
                isTablet && styles.leadAssetContainerTablet
github newsuk / times-components / packages / article-in-depth / src / article-in-depth.web.js View on Github external
headline,
      label,
      publicationName,
      publishedTime,
      shortHeadline,
      standfirst,
      textColour
    } = article;

    return (
      
        
         }
          style={styles.leadAsset}
          width={width}
        />
github newsuk / times-components / packages / article-main-comment / src / article-main-comment.js View on Github external
const authorImage =
      bylines &&
      bylines.length > 0 &&
      bylines[0].image &&
      Object.keys(bylines[0].image).length !== 0 &&
      bylines[0].image.crop
        ? bylines[0].image.crop.url
        : null;

    return (
      
    );
  }
github newsuk / times-components / packages / article-magazine-standard / src / article-magazine-standard.web.js View on Github external
hasVideo,
      headline,
      label,
      publicationName,
      publishedTime,
      shortHeadline,
      standfirst
    } = article;

    return (
      
        
         }
          style={styles.leadAssetContainer}
          width={width}
        />
      
    );
  }
github newsuk / times-components / packages / article-magazine-standard / src / article-magazine-standard.js View on Github external
{({ isTablet }) => (
          
            
             }
              style={[
                styles.leadAssetContainer,
                isTablet && styles.leadAssetContainerTablet,
github newsuk / times-components / packages / article-in-depth / src / article-in-depth.js View on Github external
{({ isTablet }) => (
          
            
            
                caption && caption.text && 
              }
              style={[styles.leadAsset, isTablet && styles.leadAssetTablet]}
              width={width}
            />
github newsuk / times-components / packages / article-magazine-comment / src / article-magazine-comment.web.js View on Github external
bylines &&
      bylines.length > 0 &&
      bylines[0].image &&
      Object.keys(bylines[0].image).length !== 0 &&
      bylines[0].image.crop
        ? bylines[0].image.crop.url
        : null;

    return (
      
        
         }
          style={styles.leadAssetContainer}
          width={width}
        />
      
    );
  }