ListView#renderSeparator

renderSeparator function (sectionID, rowID, adjacentRowHighlighted) => renderable If provided, a renderable component to be rendered as the separator below each row but not the last row if there is a section header below. Take a sectionID and rowID of the row above and whether its adjacent row is highlighted.

ListView#stickyHeaderIndices

iosstickyHeaderIndices [number] An array of child indices determining which children get docked to the top of the screen when scrolling. For example, passing stickyHeaderIndices={[0]} will cause the first child to be fixed to the top of the scroll view. This property is not supported in conjunction with horizontal={true}.

ListView#scrollTo()

scrollTo(...args) Scrolls to a given x, y offset, either immediately or with a smooth animation. See ScrollView#scrollTo.

ListView#scrollRenderAheadDistance

scrollRenderAheadDistance number How early to start rendering rows before they come on screen, in pixels.

ListView#renderScrollComponent

renderScrollComponent function (props) => renderable A function that returns the scrollable component in which the list rows are rendered. Defaults to returning a ScrollView with the given props.

ListView#renderSectionHeader

renderSectionHeader function (sectionData, sectionID) => renderable If provided, a sticky header is rendered for this section. The sticky behavior means that it will scroll with the content at the top of the section until it reaches the top of the screen, at which point it will stick to the top until it is pushed off the screen by the next section header.

ListView#renderHeader

renderHeader function

ListView#renderRow

renderRow function (rowData, sectionID, rowID, highlightRow) => renderable Takes a data entry from the data source and its ids and should return a renderable component to be rendered as the row. By default the data is exactly what was put into the data source, but it's also possible to provide custom extractors. ListView can be notified when a row is being highlighted by calling highlightRow(sectionID, rowID). This sets a boolean value of adjacentRowHighlighted in renderSeparator, allowing

ListView#renderFooter

renderFooter function () => renderable The header and footer are always rendered (if these props are provided) on every render pass. If they are expensive to re-render, wrap them in StaticContainer or other mechanism as appropriate. Footer is always at the bottom of the list, and header at the top, on every render pass.

ListView#initialListSize

initialListSize number How many rows to render on initial component mount. Use this to make it so that the first screen worth of data appears at one time instead of over the course of multiple frames.