-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.ts
More file actions
25 lines (19 loc) · 940 Bytes
/
index.ts
File metadata and controls
25 lines (19 loc) · 940 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// polyfill here before app/_layout.tsx
import 'react-native-get-random-values';
// make sure import @walletconnect/react-native-compat before wagmi to avoid issues
import '@walletconnect/react-native-compat';
import 'event-target-polyfill'; // `EventTarget`, `Event`, polyfill for @nktkas/hyperliquid
import 'fast-text-encoding'; // `TextEncoder` (utf-8), polyfill for @nktkas/hyperliquid
// `DOMException` polyfill for @nktkas/hyperliquid (used in AbortSignal.timeout)
if (typeof globalThis.DOMException === 'undefined') {
globalThis.DOMException = class DOMException extends Error {
constructor(message?: string, name?: string) {
super(message);
this.name = name || 'Error';
}
} as typeof globalThis.DOMException;
}
import '@ethersproject/shims'; // Polyfill for privy
// Import Privy polyfills FIRST - must be before any other imports
import '@privy-io/expo-native-extensions';
import 'expo-router/entry';