Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
onImagePress={onImagePress}
onVideoPress={onVideoPress}
renderCaption={({ caption }) =>
isTablet &&
}
style={[styles.leadAsset, isTablet && styles.leadAssetTablet]}
width={Math.min(parentProps.width, tabletWidth)}
/>
);
const header = (
);
return (
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 (
);
}
publishedTime,
shortHeadline,
standfirst,
topics
} = article;
const metaProps = { bylines, publicationName, publishedTime };
return (
{({ isTablet }) => (
}
style={[
styles.leadAssetContainer,
isTablet && styles.leadAssetContainerTablet
headline,
label,
publicationName,
publishedTime,
shortHeadline,
standfirst,
textColour
} = article;
return (
}
style={styles.leadAsset}
width={width}
/>
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 (
);
}
hasVideo,
headline,
label,
publicationName,
publishedTime,
shortHeadline,
standfirst
} = article;
return (
}
style={styles.leadAssetContainer}
width={width}
/>
);
}
{({ isTablet }) => (
}
style={[
styles.leadAssetContainer,
isTablet && styles.leadAssetContainerTablet,
{({ isTablet }) => (
caption && caption.text &&
}
style={[styles.leadAsset, isTablet && styles.leadAssetTablet]}
width={width}
/>
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}
/>
);
}