forked from CopilotKit/CopilotKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.tsx
More file actions
22 lines (18 loc) · 655 Bytes
/
Copy pathApp.tsx
File metadata and controls
22 lines (18 loc) · 655 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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;