forked from CopilotKit/CopilotKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpolyfills.ts
More file actions
22 lines (20 loc) · 779 Bytes
/
Copy pathpolyfills.ts
File metadata and controls
22 lines (20 loc) · 779 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/**
* All polyfills required for CopilotKit to work in React Native.
*
* Import this BEFORE any CopilotKit code in your app entry point:
* import "@copilotkit/react-native/polyfills";
*
* For granular control, import individual polyfills instead:
* import "@copilotkit/react-native/polyfills/streams";
* import "@copilotkit/react-native/polyfills/encoding";
* import "@copilotkit/react-native/polyfills/crypto";
* import "@copilotkit/react-native/polyfills/dom";
* import "@copilotkit/react-native/polyfills/location";
*/
import "./polyfills/streams";
import "./polyfills/encoding";
import "./polyfills/crypto";
import "./polyfills/dom";
import "./polyfills/location";
import { installStreamingFetch } from "./streaming-fetch";
installStreamingFetch();