Open doolb14 opened 3 years ago
Hey @doolb14 could you please share some screenrecording?
I'm also facing the same issue
const loadMoreOlderMessages = async () => {
if ((nextPage > 0 && !messagesLoader)) {
// Calling the API here
}
};
<FlatList
inverted
contentContainerStyle={{flexGrow: 1, marginBottom: wp(20)}}
showsVerticalScrollIndicator={false}
keyExtractor={(item) => item.toString()}
data={messageList}
renderItem={({item}) => (
<MessageBubble
item={item}
/>
)}
onEndReached={loadMoreOlderMessages}
onEndReachedThreshold={50}
showDefaultLoadingIndicators={true}
/>
@doolb14 can you share your code for this FlatList component?
@vishalnarkhede May I know what's the issue in my code?
@IamDhana its a bit hard to say. Inside loadMoreOlderMessages
, are you ensuring await for api response?
@IamDhana its a bit hard to say. Inside
loadMoreOlderMessages
, are you ensuring await for api response?
Hi @vishalnarkhede why is this necessary? Can you please elaborate the docs, I am willing to help you if you need me.
this is my element