Files
copilotkit__copilotkit/examples/v2/react-native/demo/App.tsx
Maxim a9b2dbff75 feat: add React Native demo app
Full RN 0.85.2 demo showing chat with useAgent, frontend tools
(theme toggle, app mode), generative UI (pie chart), HITL (meeting
scheduler), shared state (task manager), and thread management.
Points to langgraph-py example runtime.
2026-05-06 16:42:22 -07:00

23 lines
655 B
TypeScript

import { StatusBar, useColorScheme } from "react-native";
import { SafeAreaProvider } from "react-native-safe-area-context";
import { CopilotKitProvider } from "@copilotkit/react-native";
import { ChatScreen } from "./src/ChatScreen";
const RUNTIME_URL =
"https://langgraph-py.examples.copilotkit.ai/api/copilotkit";
function App() {
const isDarkMode = useColorScheme() === "dark";
return (
<SafeAreaProvider>
<StatusBar barStyle={isDarkMode ? "light-content" : "dark-content"} />
<CopilotKitProvider runtimeUrl={RUNTIME_URL}>
<ChatScreen />
</CopilotKitProvider>
</SafeAreaProvider>
);
}
export default App;