-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
55 lines (49 loc) · 1.11 KB
/
App.tsx
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
*/
import React from "react";
import type { PropsWithChildren } from "react";
import {
SafeAreaView,
ScrollView,
StatusBar,
StyleSheet,
Text,
useColorScheme,
View,
} from "react-native";
import {
Colors,
DebugInstructions,
Header,
LearnMoreLinks,
ReloadInstructions,
} from "react-native/Libraries/NewAppScreen";
import Navigation from "./navigation";
import { SafeAreaProvider } from "react-native-safe-area-context";
import { useMagicSigner } from "./hooks/useMagicSigner";
import { WagmiConfig, createConfig } from "wagmi";
import { createPublicClient, http } from "viem";
import { chain } from "./config/client";
const config = createConfig({
autoConnect: true,
publicClient: createPublicClient({
chain: chain,
transport: http(),
}),
});
function App(): JSX.Element {
const { magic } = useMagicSigner();
return (
<WagmiConfig config={config}>
<SafeAreaProvider>
<magic.Relayer />
<Navigation />
</SafeAreaProvider>
</WagmiConfig>
);
}
export default App;