React Native

Build chat into your React Native app with TalkJS

Quickly embed a customizable chat experience into your React Native app using the best chat APIs, feature-rich SDKs, and highly customizable components.
Hello, Magnus. Just a reminder, your dissertation deadline is this week. How are you coming along?
1m
MagnusJust nowHi! I'm almost done, just finalizing edits and checking my citations.
Great to hear! Anything you're worried about?
Just now
MagnusJust nowJust aiming to meet all the guidelines. I'll finish on time, I'm confident of that.
If you need a review or have questions, let me know. Be sure to submit by the deadline.
Just now
MagnusJust nowWill do. Thanks for the support!
Say something...
React Native SDK

Connect users with a fully customizable chat using our real-time messaging infrastructure that works great with React Native.

Drop-in chat UI

Ship faster by using pre-built components that are highly customizable. Get up and running in just 10 minutes.

Fully-featured

All the essential messaging features you need. Replies, mentions, typing indicators, link previews, emojis, and more.

Working with React Native and TalkJS

Ship faster, simplify your stack, and save on development costs by using the best chat APIs and a feature-rich React Native chat SDK. It's all you need to add a fully-featured chat into your app in minutes, instead of months.

1<script>
2 // Synchronize user data and set up
3 import React from 'react';
4 import * as TalkRn from '@talkjs/react-native';
5
6 function ChatComponent(props) {
7 const me = {
8 id: '123456789',
9 name: 'Alice',
10 email: 'alice@example.com',
11 photoUrl: 'https://talkjs.com/images/avatar-1.jpg',
12 welcomeMessage: 'Hey there! How are you? :-)',
13 };
14
15 const other = {
16 id: '987654321',
17 name: 'Sebastian',
18 email: 'Sebastian@example.com',
19 photoUrl: 'https://talkjs.com/images/avatar-5.jpg',
20 welcomeMessage: 'Hey, how can I help? https://google.com',
21 };
22
23 const conversationBuilder = TalkRn.getConversationBuilder(
24 TalkRn.oneOnOneId(me, other)
25 );
26
27 conversationBuilder.setParticipant(me);
28 conversationBuilder.setParticipant(other);
29
30 return (
31 <TalkRn.Session appId='YOUR_APP_ID' me={me}>
32 <TalkRn.Chatbox conversationBuilder={conversationBuilder} />
33 </TalkRn.Session>
34 );
35 }
36</script>
Because implementing TalkJS was as fast and easy as it was, we were able to greenlight and move this project along very quickly. Had we not chosen this path, the feature would have either been delayed, or shelved due to the resources needed to implement it.
Sean Elliot
Engineering Manager, StyleSeat
Ready-made chat components you can customize

The React Native SDK comes with UI components that are forward-compatible and will keep working on future devices and new features. You have complete control over the styling, the layout, and document structure of the chat messages and the possibility to show metadata.

API code snippet illustration