forked from e888mon/Chainbytes_Dapp_Frontend
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.js
25 lines (21 loc) · 793 Bytes
/
index.js
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
/* eslint-disable eslint-comments/no-unlimited-disable */
/* eslint-disable */
import "./global";
const { registerRootComponent, scheme } = require("expo");
const { default: App } = require("./App");
const {
default: AsyncStorage,
} = require("@react-native-async-storage/async-storage");
const { withWalletConnect } = require("@walletconnect/react-native-dapp");
// registerRootComponent calls AppRegistry.registerComponent('main', () => App);
// It also ensures that whether you load the app in the Expo client or in a native build,
// the environment is set up appropriately
registerRootComponent(
withWalletConnect(App, {
redirectUrl:
Platform.OS === "web" ? window.location.origin : `${scheme}://`,
storageOptions: {
asyncStorage: AsyncStorage,
},
})
);