B. The data property should be an array, not a number
C. renderItem should be renderSectionFooter
D. sections should be a flat array, not array of objects
Solution
Step 1: Check the type of data property
The data property must be an array of items, but here it is a number (12345).
Step 2: Understand consequences of wrong data type
This will cause runtime errors because SectionList expects an array to iterate over.
Final Answer:
The data property should be an array, not a number -> Option B
Quick Check:
data must be array [OK]
Hint: data must always be an array, never a single value [OK]
Common Mistakes:
Passing a single value instead of array to data
Confusing title type with data type
Using wrong render method names
5. You want to display a SectionList with sections for weekdays and weekend, but only show days that start with 'S'. How should you prepare the sections data?