I am using your theme and it have a component called ChatInner Component in React which is help to display the chats of the both users.
It is working fine but i want to have pagination on scroll top like most recent chat should be displayed and for older chat if user scroll to top based on that the chat should be loaded.
Can you please help me how can i implement this?
I've been using the ChatInner Component in React from your theme, and it's been great for displaying user chats on omegle new. However, I'm looking to implement scroll pagination for loading older chats as the user scrolls to the top. Any advice on how to achieve this? Thanks in advance!
Hi Mustafa,
Thank you for reaching out to us.
If you need to load older messages as users scroll, you might use an infinite scroll component.
Check out react-infinite-scroll-component for this purpose.
https://www.npmjs.com/package/react-infinite-scroll-component
Regards,
Lauris Stepanovs,
Keenthemes Support Team