问题
Can anyone explain me how to carry out chat between two users in react native.Please specify any library for chat except twilio,xmpp and simple chat.
Thanks
回答1:
Try using sendbird. I built a chat app in react native with their SDK about a year ago and there were some kinks. But they've solved pretty much everything now and it works well and they've updated their documentation
回答2:
you can use this awesome library for implementing you chat
https://github.com/FaridSafi/react-native-gifted-chat.
回答3:
ConnectyCube provides React Native SDK to develop apps with messaging functionality:
- 1-1 messaging
- Group messaging
- Sent/Delivered/Read statuses
- 'Is typing' statuses
- File attachments
- Push notifications to offline users
- Contact list
- Block list
React Native SDK - Getting Started: https://developers.connectycube.com/js/react-native
Chat functionality - Getting Started https://developers.connectycube.com/js/messaging
回答4:
SendBird is the only library with i am satisfied. I tried gifted chat, Applozic. It will provide you 100% customization. You can get the example code from official website.
回答5:
You can use gifted chat to biuld the Ui for the application.
GiftedChat
And for making it dynamic you can make use of xmpp .
XMPP-React-Native
回答6:
Also if you are interested in how chat user interface is implemented in general you can check out https://github.com/PeterKottas/react-bell-chat which is pretty easy to follow. I am actually working on a react-native version of this. Then all you need is backend to talk to. I assume you will also want to implement some bidirectional communication with the server. Probably using websockets. If you use microsoft stack, SignalR should make it pretty easy on the backend side.
回答7:
I tried using firebase and Expo. I ran the simulator in two physical phones. Functionality: Login screen--> User name--> Chat Phone 1 : User 1 logged in Phone 2: User 2 logged in
I chatted between these two users
来源:https://stackoverflow.com/questions/44559176/chat-in-react-native