Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
onRelatedArticlePress={onRelatedArticlePress}
onTopicPress={onTopicPress}
/>
),
[]
);
const fixedContent = useMemo(
() => [...fixup(isTablet, content), { name: "footer" }],
[content, isTablet]
);
const images = fixedContent.filter(node => node.name === "image");
const dropcapsDisabled = isDropcapsDisabled(data);
const renderChild = render(renderers({ dropcapsDisabled, ...props, images }));
// eslint-disable-next-line react/prop-types
const Child = useCallback(
({ item, index }) => (
{item.name === "footer"
? footer
: renderChild(item, index.toString(), index)}
),
[footer]
);
// FIXME: remove this when ios memory leaks are resolved
const Scroller = React.useCallback(