-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathApp.tsx
40 lines (35 loc) · 1014 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
35
36
37
38
39
40
import "./global";
import * as React from "react";
import { StatusBar } from "expo-status-bar";
import { StyleSheet, View, Platform } from "react-native";
import WalletConnectProvider from "@walletconnect/react-native-dapp";
import AsyncStorage from "@react-native-async-storage/async-storage";
import WalletConnectExperience from "./WalletConnectExperience";
const SCHEME_FROM_APP_JSON = "walletconnect-example";
export default function App() {
return (
<WalletConnectProvider
redirectUrl={
Platform.OS === "web"
? window.location.origin
: `${SCHEME_FROM_APP_JSON}://`
}
storageOptions={{
asyncStorage: AsyncStorage,
}}
>
<View style={styles.container}>
<WalletConnectExperience />
<StatusBar style="auto" />
</View>
</WalletConnectProvider>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: "#fff",
alignItems: "center",
justifyContent: "center",
},
});