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.
When to reach for this
Section titled “When to reach for this”- 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.
The 30‑second version
Section titled “The 30‑second version”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.
Where to go next
Section titled “Where to go next”- Install & Setup — get it running in your app, start to finish.
- Hook Guide — what each hook does and when to use it.
- Thread & Agent Model — how ThinkWork thinks about conversations and who owns them.
- Integration Recipes — copy‑paste patterns for the usual screens.
- Upgrading from 0.1 — if you’re on an older version.
For exact function signatures and implementation detail, see the package README on GitHub.
Current version
Section titled “Current version”0.2.0-beta.2 on the beta dist‑tag — pnpm add @thinkwork/react-native-sdk@beta.