Comments (5)
I'm pretty swamped, but I'd recommend putting it here:
https://github.com/dharness/react-chat-window/blob/master/src/components/Messages/index.js
from react-chat-window.
That's a good idea @vkhattar -- let's think about the other kinds of dates we might need so we get the names right (eg sent, received, read, etc) and add this as a feature req.
It won't make it into the next version, but it may appear later.
Important to note however, you can have your message objects have whatever fields you want. react-chat-window will just ignore extraneous ones. I want to leave this open because I think the UI should have the option of showing some date indicators, but it's not clear what ones or what that might look like.
from react-chat-window.
I did add something locally, but could not make a pull request as I did not fork it. For now i am just adding the date with the text, it looks ugly but does get the job done.
from react-chat-window.
@dharness -- Any update on this feature? I'm planning to use this library for one of my projects and would require this feature as part of it. If you can guide me through the implementation, I can develop it for you and create a PR too :)
from react-chat-window.
I'd like to open this to opinions and suggestions for the design. Should the date appear for every message? Above the bubble, below it, with a time, with the day of week, with relative times (5 minutes ago, yesterday), only at intervals of greater than X time, should there be a break in the convo when it's a new day... there's a lot we need to specify if we want to see this feature!
from react-chat-window.
Related Issues (20)
- Provide buttons for user to select? HOT 1
- Can we use this real time? HOT 5
- Error on nextJS before installation HOT 5
- How to hide Attachment Icon? HOT 10
- How to add a new screen prior to Chat? HOT 1
- componentWillReceiveProps HOT 1
- Chat room feature HOT 3
- How can i import into a plain html file? HOT 2
- Add alt attribute to img tags HOT 1
- send button not rendering HOT 1
- Can't load notification.mp3 file HOT 4
- How to add onClick event on agentProfile?
- Assets issue
- Launcher Color
- Needed Help to add new properties HOT 2
- Change the SVG HOT 1
- Preview Images HOT 2
- Error on nextJS when import Launcher HOT 1
- change place and change style of launcher
- Has anyone forked this to react 16-18? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-chat-window.