-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
53 lines (49 loc) · 1.31 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
import { NavigationContainer } from "@react-navigation/native";
import { useWalletConnectModal } from "@walletconnect/modal-react-native";
import { WalletConnectModal } from "@walletconnect/modal-react-native";
import { StatusBar } from "expo-status-bar";
import { SafeAreaProvider } from "react-native-safe-area-context";
import {
Button,
Image,
Pressable,
SafeAreaView,
StyleSheet,
Text,
Touchable,
View,
} from "react-native";
import Navigation from "./navigation";
const projectId = "d4c2601ac4bccb8fd44de4a451018ff2";
const providerMetadata = {
name: "walletwise",
description: "YOUR_PROJECT_DESCRIPTION",
url: "https://your-project-website.com/",
icons: ["https://your-project-logo.com/"],
redirect: {
native: "YOUR_APP_SCHEME://",
universal: "YOUR_APP_UNIVERSAL_LINK.com",
},
};
export default function App() {
// const { open, isConnected, address } = useWalletConnectModal();
// console.log(address);
return (
<SafeAreaProvider>
<StatusBar style="auto" />
<Navigation />
<WalletConnectModal
projectId={projectId}
providerMetadata={providerMetadata}
/>
</SafeAreaProvider>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: "#fff",
alignItems: "center",
justifyContent: "center",
},
});