Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
);
}
}
const PodcastImage = styled(FastImage).attrs(({ uri }) => ({
source: {
priority: FastImage.priority.high,
uri,
},
}))`
width: 100%;
render() {
const {
uri, selected,
} = this.props;
const priority = selected ? FastImage.priority.high : FastImage.priority.normal;
return (
this.handleClick(uri)}
>
style={styles.scrollContainer}
contentContainerStyle={styles.scrollContentContainer}
>
return family.tokens.map((token, rowIndex) => {
let priority = FastImage.priority[isTopFold ? 'high' : 'normal'];
if (isTopFold && isLargeFamily) {
if (rowIndex <= largeFamilyThreshold) {
priority = FastImage.priority.high;
} else if (isJumboFamily) {
const isMedium =
rowIndex > largeFamilyThreshold && rowIndex <= jumboFamilyThreshold;
priority = FastImage.priority[isMedium ? 'normal' : 'low'];
} else {
priority = FastImage.priority.normal;
}
}
const images = token.map(({ image_preview_url, uniqueId }) => {
if (!image_preview_url) return null;
return {
return (
{_formatData.map((item, key) => (
))}
ellipsizeMode: 'tail',
})`
color: ${({ theme }) => theme.colors.darkText};
font-size: ${({ theme }) => theme.metrics.getWidthFromDP('3.8%')}px;
font-family: CircularStd-Bold;
`;
const ProfileAvatarWrapper = styled(View)`
width: 20%;
height: 100%;
justify-content: center;
`;
const ProfileAvatar = styled(FastImage).attrs({
source: ({ uri }) => ({ uri }),
priority: FastImage.priority.high,
})`
margin: ${({ theme }) => `${theme.metrics.largeSize}px 0 ${theme.metrics.largeSize}px 0`}
width: 48px;
height: 48px;
border-radius: 24px;
`;
const ReviewText = styled(Text).attrs({
numberOfLines: 3,
ellipsizeMode: 'tail',
})`
margin-top: ${({ theme }) => {
const marginTop = (Platform.OS === 'android' ? theme.metrics.extraSmallSize / 2 : theme.metrics.extraSmallSize);
return marginTop;
}}px;
color: ${({ theme }) => theme.colors.subText};
const NativeImage: React.FC = ({ uri, style }) => {
if (!uri) return