Please sign in to comment.
Made `getItem` and `getItemCount` required props (VirtualizedList)
Summary: The main reason to use **VirtualizedList** is to set the `getItem` and `getItemCount` props, so having default values for these props makes things error prone. * In **VirtualizedList**, changed the `getItem` and `getItemCount` props from optional to required, and removed default values. * Ensured that implementing classes **FlatList** and **SectionVirtualizedList** are always passing these props. * Updated VirtualizedList-test.js accordingly. Reviewed By: sahrens Differential Revision: D4980236 fbshipit-source-id: ad1838931253bc61ff9068c40929f6e9c755b92c
- Loading branch information...
Showing with 18 additions and 12 deletions.