Skip to content

React Native SDK

If you’re building a mobile app and you want it to talk to ThinkWork — agent chat, thread lists, real‑time updates — this SDK does the plumbing for you. Sign‑in, data fetching, WebSocket subscriptions, token refresh: handled. You write the UI.

No visual components. No opinions about how your app should look. Just hooks you call, and data comes back.

  • You have a mobile app (your own, a customer’s, or an internal tool).
  • You want it to let users talk to their ThinkWork agents.
  • You don’t want to think about Cognito, GraphQL, AppSync, or any of that.
import { ThinkworkProvider, useThreads, useSendMessage } from "@thinkwork/react-native-sdk";
function App() {
return (
<ThinkworkProvider config={config}>
<Inbox />
</ThinkworkProvider>
);
}
function Inbox() {
const { threads } = useThreads({ tenantId });
return threads.map(t => <ThreadRow key={t.id} thread={t} />);
}

That’s the shape of every consumer: wrap your app in a provider, call hooks, build UI.

For exact function signatures and implementation detail, see the package README on GitHub.

0.2.0-beta.2 on the beta dist‑tag — pnpm add @thinkwork/react-native-sdk@beta.