-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
34 lines (30 loc) · 913 Bytes
/
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
import "./expo-crypto-shim.ts";
import { Web3Modal } from "@web3modal/react-native";
import { StatusBar } from "expo-status-bar";
import { SafeAreaView, StyleSheet } from "react-native";
import ConnectWallet from "./components/ConnectWallet/index";
const projectId = "YOUR_PROJECT_ID";
const providerMetadata = {
name: "YOUR_PROJECT_NAME",
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() {
return (
<SafeAreaView style={styles.screenContainer}>
<StatusBar style="auto" />
<ConnectWallet />
<Web3Modal projectId={projectId} providerMetadata={providerMetadata} />
</SafeAreaView>
);
}
const styles = StyleSheet.create({
screenContainer: {
flex: 1,
},
});