-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
35 lines (32 loc) · 1017 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
import './src/utils/polyfill';
import SolanaConnection from './src/components/context/SolanaConnection';
import {AnchorProgramProvider} from './src/components/context/SolanaAnchorProgram';
import {I18nextProvider} from 'react-i18next';
import i18n from './src/languages';
import {Main} from './src/Main';
import {createTamagui, TamaguiProvider} from 'tamagui';
import {config} from '@tamagui/config';
const tamaguiConfig = createTamagui(config);
type Conf = typeof tamaguiConfig;
declare module '@tamagui/core' {
interface TamaguiCustomConfig extends Conf {}
}
let counter = 0;
function App(): React.JSX.Element {
counter++;
console.log('App rendered', counter);
return (
<>
<I18nextProvider i18n={i18n}>
<SolanaConnection>
<AnchorProgramProvider>
<TamaguiProvider config={tamaguiConfig}>
<Main />
</TamaguiProvider>
</AnchorProgramProvider>
</SolanaConnection>
</I18nextProvider>
</>
);
}
export default App;