
Guides
How to add support chat to a React Native or Expo app
Add in-app support chat to a React Native app, in Expo (including Expo Go) or bare React Native: install, configure, add a chat button and verify your users.
By The agent44 team
On this page
Most support SDKs for React Native are wrappers around native iOS and Android SDKs, which means a native module, a config plugin and no Expo Go. agent44’s package is plain TypeScript with no native module of its own, so it runs in Expo Go and in bare React Native the same way. This guide sets it up.
Before you start
- React Native 0.74 or newer.
- An agent44 workspace. In Settings › Apps, add your app once for iOS and once for Android, and create an SDK key for each.
1. Install the package
npx expo install @agent44/react-native @react-native-async-storage/async-storage react-native-webview react-native-safe-area-contextnpm install @agent44/react-native @react-native-async-storage/async-storage react-native-webview react-native-safe-area-context
cd ios && pod installThe three peer dependencies do the native work: storage for the user and unsent messages, a web view for help articles, and safe areas for the notch.
2. Start the SDK
import { Agent44, Agent44Provider } from '@agent44/react-native';
import * as Application from 'expo-application';
Agent44.configure({
publicKeyIos: 'a44_pub_YOUR_IOS_KEY',
publicKeyAndroid: 'a44_pub_YOUR_ANDROID_KEY',
appInfo: {
appVersion: Application.nativeApplicationVersion,
build: Application.nativeBuildVersion,
bundleId: Application.applicationId,
},
});
export default function App() {
return (
<Agent44Provider>
<YourNavigation />
</Agent44Provider>
);
}Two things here are specific to React Native. The provider draws the SDK’s screens over your app in its own small stack, so it works with React Navigation, Expo Router or no navigator at all: put it inside your own providers and outside your navigator. And appInfo matters, because React Native can’t read your app’s version without a native module. agent44 uses the version to pick help articles and update prompts, so pass it. In bare React Native, react-native-device-info gives you the same values.
3. Add a chat button
import { Agent44Launcher } from '@agent44/react-native';
<View style={{ flex: 1 }}>
{/* your screen */}
<Agent44Launcher />
</View>The launcher shows the unread count and opens the chat. From your own button, call Agent44.openChat(). Run the app, send a message, and it appears in your agent44 inbox.
4. Tell agent44 who your users are
await Agent44.identify({
userId: user.id, // your app's own user id
email: user.email, // everything else is optional
name: user.name,
signature: user.agent44Hash, // from your server, see the next step
});identify rejects when agent44 can’t be reached, so catch it and try again later. Call Agent44.logout() when the user signs out; it’s safe to await in your sign-out flow.
5. Verify your users
Sign the user’s ID on your server. New agent44 workspaces start with identity verification enforced, so a signed-in user is refused until your server signs their ID with the workspace secret (HMAC-SHA256, as lowercase hex). People who haven’t signed in can chat without it.
crypto.createHmac('sha256', process.env.AGENT44_IDENTITY_SECRET).update(user.id).digest('hex');What else the same package opens
- Agent44.showHelpCenter(): your help center, inside the app.
- Agent44.showAskAi({ question }): a question to the AI, answered from your articles.
- Agent44.showMessenger(): home, messages, help and updates in one place.
- Agent44.showChangelog(): what’s new.
Force updates, recommended updates and What’s New prompts need no code beyond the provider: create them in agent44 and the provider shows the most important one at launch.
What works in Expo Go, and what doesn’t
Chat, the help center, Ask AI and in-app messages all work in Expo Go, because none of them needs native code of the SDK’s own. Push notifications are the exception in any React Native app: they need your own notification library and a development build, and the package’s README shows how to hand agent44 the device token.
The full reference is the React Native SDK page and the package’s README on GitHub.


