-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathApp.tsx
More file actions
36 lines (33 loc) · 1.01 KB
/
App.tsx
File metadata and controls
36 lines (33 loc) · 1.01 KB
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
import {
ConnectionProvider,
RPC_ENDPOINT,
} from './components/providers/ConnectionProvider';
import {clusterApiUrl} from '@solana/web3.js';
import React from 'react';
import {SafeAreaView, StyleSheet} from 'react-native';
import {AuthorizationProvider} from './components/providers/AuthorizationProvider';
import {Header} from './components/Header';
import MainScreen from './screens/MainScreen';
import DappWalletConnectModal from "./components/DappWalletConnectModal";
export default function App() {
return (
<ConnectionProvider
config={{commitment: 'processed'}}
endpoint="https://rpc.hellomoon.io/15bdc890-15fa-46a8-95d8-6ee39fba9009">
<AuthorizationProvider>
<SafeAreaView style={styles.shell}>
<Header />
<MainScreen />
</SafeAreaView>
</AuthorizationProvider>
<DappWalletConnectModal />
</ConnectionProvider>
);
}
const styles = StyleSheet.create({
shell: {
height: '100%',
display: 'flex',
flexDirection: 'column',
},
});