Search code examples
react-nativereact-native-listview

React Native | Controlling Parameters Passed to a ListView's renderRow Function


According to the React Native Docs for ListView the signature for the renderRow function has the following signature:

(rowData, sectionID, rowID, highlightRow) => renderable

However, in the ScheduleView component in the F8App app by Facebook, PureListView which renders a ListView uses a renderRow function with this signature:

renderRow(session: Session, day: number)

How is this? What am I overlooking?


Solution

  • Because f8 app uses flow. See https://flowtype.org/