AgentsKit Chat Alpha
Getting started

React Native

View canonical Markdown

React Native

Install @agentskit/chat, @agentskit/chat/react-native, @agentskit/react-native, React, and React Native. Native dependencies belong to the Expo application, not the renderer package.

import { AgentChatNative } from '@agentskit/chat/react-native'
import { chat } from './chat'

export default function App() {
  return <AgentChatNative definition={chat} />
}
// chat.ts
import { defineChat } from '@agentskit/chat'
import { adapter } from './adapter'

export const chat = defineChat({ id: 'hello-world', chat: { adapter } })

The Expo example in this repository keeps its deterministic shared fixture private because it is test infrastructure, not a published API.

The renderer consumes @agentskit/react-native directly. The shared definition contains no DOM, React web, Expo, or React Native imports. Version 0.4.4 or newer is required; the release is tested against the published 0.4.x line for cancellation, native accessibility, and bundle safety.

On this page