JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 11281
  • Score
    100M100P100Q134602F
  • License MIT

React Native bindings for assistant-ui

Package Exports

  • @assistant-ui/react-native
  • @assistant-ui/react-native/internal

Readme

@assistant-ui/react-native

React Native bindings for assistant-ui.

Features

  • Native React Native primitives (Thread, Composer, Message, ThreadList)
  • Multi-thread support with in-memory thread list
  • Compatible with @assistant-ui/core runtime system

Usage

import { useLocalRuntime, AssistantProvider } from '@assistant-ui/react-native';

function App() {
  const runtime = useLocalRuntime(chatModelAdapter);

  return (
    <AssistantProvider runtime={runtime}>
      {/* Your chat UI */}
    </AssistantProvider>
  );
}