Comments (14)
Should be this week :)
from react-native-chat-ui.
Released on NPM too v1.3.0. Firebase package next.
from react-native-chat-ui.
Update is available on main
branch, I still need to update documentation and add a couple of small tweaks, that's why no release, but it is working from git if urgently needed :)
from react-native-chat-ui.
Hey @shamxeed it's in the PR and coming soon with the 1.1 version (it will be a breaking change to stabilize the API)
from react-native-chat-ui.
Hey @shamxeed we thought that if someone has usernames, firstName will be username and lastName will not exist, so you have usernames. WDYT?
from react-native-chat-ui.
@demchenkoalex Wow!! This is absolutely mind-blowing now everything I need is packed with this library❤️❤️❤️
Just a friendly advice, do you think in the Group Chat showing firstName/lastName is the best option ?? For me, I think using a username will be a good practice, as it can uniquely identify users and many more...
Thank you once again for always being here❤️❤️
from react-native-chat-ui.
Hey @shamxeed no problem, hope you're enjoyed your time off :)
Both of your cases are not related to this library, because this is not the app, this is a component that helps you to render a chat, nothing more. It does not handle registration, it does not handle millions of date formats that exist.
In order for such library to function you need to create some hard coded fields like createdAt
because there is some logic to be handled, and you can't accept a generic because people will start throwing in numbers, strings, objects, arrays etc. How does one handle all that?
Instead, some fields are forced to be something specific, and library user must transform his backed responses or write registration logic (see username logic) in order to supply the correct data.
This library is just a helper/time saver, but you have to do something in order to use it, everything has its price :)
from react-native-chat-ui.
Thanks, @demchenkoalex I completely understand... Hats off!!!
from react-native-chat-ui.
Okay, glad to hear that and thanks for the amazing work!! Just for my curiosity, when are we going to expect the v1.1 release?
Thank You So Much Once Again!!!
from react-native-chat-ui.
Can't thank you enough @demchenkoalex !! Because it's surely urgently needed!! :))
from react-native-chat-ui.
@demchenkoalex that's a huge update and making this library more complete😍😍... Just that onChangeText method need to be accessed in order to show when user is typing...
Thanks for the hardwork!!
from react-native-chat-ui.
Hi @shamxeed it is there, just use textInputProps
and a usual onChangeText
. We tried to supply props for basic RN components using this objects, like textInputProps
or flatListProps
etc. Thanks! :)
from react-native-chat-ui.
@demchenkoalex sorry for the late response, I was actually on break that's why. Yeah, that might be possible but it's also possible that usernames are actual set by users while registering/account creation, with some rules e.g: it must be unique and can't contain generic terms or extensions (.com, .net), and capitalization can't be used to differentiate usernames etc... But firstName or fullName can be anything even emojis in some cases lol. And are (firstName/fullName) used mostly for displayName.
Refernces: Snapchat & Twitter.
Thanks!!!
from react-native-chat-ui.
There's another thing I want to draw your attention about, that's the createdAt
field on chat which expect timestamp and must be Number
that's really good actually, but the thing is that sometimes some databases return dateField
in String
which is opposed to what this library expects.
If you consider this as something to be addressed, then I think the code needs to be redefined in a way that Number
/String
does not matter.
e.g
const compare = (a, b) => new Date(+a.createdAt) - new Date(+b.createdAt)
const sortedInAsc = data.sort(compare)
Thank you so much!!! ❤️❤️
from react-native-chat-ui.
Related Issues (20)
- How to show User avatars & names Please Example..
- [QUESTION]: How to render custom message ? HOT 5
- Any plan on Vue? HOT 2
- 🚨 Before you open a feature request!
- Thank you
- [Expo web] Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
- feat: forward FlatList ref and make automatic scroll disableable
- feat: pass props to renderCustomComponent
- How to disable date header component HOT 5
- How can I load more data when I pull it all out?
- Customize Conversation Background HOT 1
- Please 🙏🏿 I need help, I actullay dont no the props required!!! HOT 2
- User2 messages disappear once User1 replies; setState going wrong? HOT 2
- Any way to "copy" a message (press and hold a bubble to copy its content) HOT 1
- useSyncExternalStore for messages not supported HOT 1
- Chat UI and message box issue on iOS with react native expo HOT 9
- How to disable double check ? HOT 1
- Critical bug when using Headers HOT 1
- ListEmptyComponent renders in a "mirrored" state? HOT 3
- About modifying Avatar HOT 2
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-native-chat-ui.