Recall & Review
beginner
What is infinite scrolling in a mobile app?
Infinite scrolling is a way to load more content automatically when the user scrolls near the end of a list, so they don’t have to tap a button to see more.
Click to reveal answer
beginner
In React Native, which prop triggers loading more data when the user scrolls near the end of a FlatList?
The
onEndReached prop triggers a function when the user scrolls close to the end of the list.Click to reveal answer
intermediate
Why should you use a
loading state when implementing infinite scrolling?A loading state prevents multiple data requests at the same time and shows the user that new content is loading.
Click to reveal answer
intermediate
What is a common problem if you don’t set
onEndReachedThreshold properly?If the threshold is too low or too high,
onEndReached may trigger too early or too late, causing bad user experience or repeated loading.Click to reveal answer
intermediate
How can you avoid loading the same data multiple times in infinite scrolling?
Use a flag like
loading to block new requests until the current one finishes, and update your data list carefully.Click to reveal answer
What does the
onEndReached prop do in a React Native FlatList?✗ Incorrect
onEndReached is used to detect when the user scrolls near the end, so you can load more data.
Which prop controls how close to the end the
onEndReached event fires?✗ Incorrect
onEndReachedThreshold sets the distance from the end (as a fraction) to trigger onEndReached.
Why is it important to have a loading state when implementing infinite scrolling?
✗ Incorrect
The loading state helps avoid sending many requests at once and shows the user that data is loading.
What happens if you don’t handle
onEndReached properly?✗ Incorrect
Improper handling can cause repeated or delayed data loading, hurting user experience.
Which React Native component is commonly used with
onEndReached for infinite scrolling?✗ Incorrect
FlatList supports onEndReached and is optimized for large lists.
Explain how infinite scrolling works in React Native using FlatList and onEndReached.
Think about how the app knows when to load more items as you scroll.
You got /4 concepts.
Describe common challenges when implementing infinite scrolling and how to solve them.
Consider what happens if the app loads data too often or too late.
You got /4 concepts.