import React from 'react'; import { Poll } from 'which-types'; import PollCard from '../PollCard/PollCard'; import { WindowScroller, AutoSizer, List } from 'react-virtualized'; interface PropTypes { polls: Poll[]; } interface RenderPropTypes { index: number; key: string; style: React.CSSProperties; } const Feed: React.FC = ({ polls }) => { const RenderItem: React.FC = ({ index, style, key }) => { const poll = polls[index]; return (
) }; return ( {({height, isScrolling, registerChild, onChildScroll, scrollTop}) => ( {({width}) => (
)}
)}
); }; export default Feed;