Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On Load Earlier messages, the list auto scroll to bottom #2463

Open
macrozone opened this issue Nov 27, 2023 · 2 comments
Open

On Load Earlier messages, the list auto scroll to bottom #2463

macrozone opened this issue Nov 27, 2023 · 2 comments

Comments

@macrozone
Copy link

Issue Description

reopen of #2019

since that was not solved and closed without resolution

@Ahmedhamed77
Copy link

could you please provide at least a code snippet? maybe snack expo ?

@kamilkedzierski
Copy link

@macrozone have you solved that issue? I have the same one :/ Tested on Android and iOS

  <GiftedChat
        messages={messages}
        onSend={(messages) => onSend(messages)}
        alwaysShowSend
        onLoadEarlier={fetchNextPage}
        loadEarlier={hasNextPage}
        infiniteScroll={true}
        renderLoadEarlier={() => <S.Loader />}
        bottomOffset={TAB_BAR_HEIGHT}
        renderChatFooter={() => <ChatFooter />}
        renderMessage={(props) => <ChatMessage {...props} />}
        renderInputToolbar={(props) => <ChatInput {...props} />}
/>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants