Skip to content
This repository has been archived by the owner on Oct 26, 2023. It is now read-only.

jusbrasil/react-chatview

 
 

Repository files navigation

react-chatview

Infinite scroll chat or feed component for React.js

This is an alpha release, use at your own risk!

Warnings

  • no documentation, you'll have to read the source
  • no tests

Live Demo

Live Demo

Here is the live demo, and source code to the live demo, also here is a simpler fiddle.

Features

  • works as newsfeed or chat (infinite load down, infinite load up)
  • hardware accelerated scrolling
  • arbitrary height elements (react-infinite needs to know element heights in advance)
  • arbitrary height container (react-infinite needs to know container height in advance)
  • arbitrary browser layout & resize "just works"

Mis-features

  • Not actually infinite - currently all elements that have been loaded remain the dom

Things that will eventually work

  • auto-scroll to newest message when appropriate (pinning)
  • auto-correct scroll jitter when content resizes or is added above/below the focus point
  • configurable loading spinner
  • optimize for mobile (but it works)

There are probably more features missing. Please open an issue!

Please let me know if you use this, if this project is valued I will invest more time in it. Seriously, please, if you're reading this and want to use it, tweet me.

This work originated as a fork and modifications of seatgeek/react-infinite, and was subsequently rewritten several times.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%