B. refreshControl prop should be refreshControl (lowercase c)
C. setRefreshing(false) is called immediately, hiding spinner too soon
D. FlatList does not support RefreshControl
Solution
Step 1: Check refreshing state timing
The function calls setRefreshing(false) immediately after fetchData(), without waiting for data to load.
Step 2: Understand spinner behavior
This causes the spinner to hide right away, not showing the loading state properly.
Final Answer:
setRefreshing(false) is called immediately, hiding spinner too soon -> Option C
Quick Check:
Refreshing state must stay true until data loads [OK]
Hint: Keep refreshing true until data fetch completes [OK]
Common Mistakes:
Calling setRefreshing(false) too early
Misnaming refreshControl prop
Assuming FlatList can't use RefreshControl
5. You want to add pull-to-refresh to a SectionList that fetches new data asynchronously. Which approach correctly ensures the spinner shows during fetch and hides after completion?