Git Product home page Git Product logo

Comments (7)

vishalnarkhede avatar vishalnarkhede commented on June 2, 2024

Hey @doolb14 could you please share some screenrecording?

from react-native-bidirectional-infinite-scroll.

doolb14 avatar doolb14 commented on June 2, 2024
Screenrecorder-2021-06-05-17-22-37-713_2.mp4

from react-native-bidirectional-infinite-scroll.

IamDhana avatar IamDhana commented on June 2, 2024

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

from react-native-bidirectional-infinite-scroll.

vishalnarkhede avatar vishalnarkhede commented on June 2, 2024

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

from react-native-bidirectional-infinite-scroll.

IamDhana avatar IamDhana commented on June 2, 2024

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

from react-native-bidirectional-infinite-scroll.

vishalnarkhede avatar vishalnarkhede commented on June 2, 2024

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

from react-native-bidirectional-infinite-scroll.

le-blip avatar le-blip commented on June 2, 2024

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

from react-native-bidirectional-infinite-scroll.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.