react-native-bidirectional-infinite-scroll icon indicating copy to clipboard operation
react-native-bidirectional-infinite-scroll copied to clipboard

Default loading indicator is not showing

Open doolb14 opened this issue 4 years ago • 7 comments

this is my element

import {FlatList as BidirectionList} from 'react-native-bidirectional-infinite-scroll';
<BidirectionList
        ref={listRef}
        data={data}
        keyExtractor={keyExtractor}
        renderItem={renderItem}
        onStartReached={onStartReached}
        onEndReached={onEndReached}
        showDefaultLoadingIndicators={true}
        onStartReachedThreshold={10}
        onEndReachedThreshold={10}
        activityIndicatorColor={'black'}
      />

doolb14 avatar May 25 '21 12:05 doolb14

Hey @doolb14 could you please share some screenrecording?

vishalnarkhede avatar Jun 02 '21 06:06 vishalnarkhede

https://user-images.githubusercontent.com/29996189/120890914-578dd500-c623-11eb-8ef6-18c84b30e25d.mp4

doolb14 avatar Jun 05 '21 11:06 doolb14

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}
         />

IamDhana avatar Jun 08 '21 04:06 IamDhana

@doolb14 can you share your code for this FlatList component?

vishalnarkhede avatar Jun 08 '21 07:06 vishalnarkhede

@vishalnarkhede May I know what's the issue in my code?

IamDhana avatar Jun 10 '21 10:06 IamDhana

@IamDhana its a bit hard to say. Inside loadMoreOlderMessages, are you ensuring await for api response?

vishalnarkhede avatar Jun 11 '21 13:06 vishalnarkhede

@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.

le-blip avatar Apr 17 '23 07:04 le-blip