-
Notifications
You must be signed in to change notification settings - Fork 2
/
App.js
31 lines (24 loc) · 854 Bytes
/
App.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
26
27
28
29
30
31
import React from 'react';
import {withWalletConnect} from '@walletconnect/react-native-dapp';
import WalletConnectOptions from './constants/WalletConnectOptions';
import {NativeBaseProvider, extendTheme} from 'native-base';
import {GestureHandlerRootView} from 'react-native-gesture-handler';
import Navigation from './navigation';
import { FeedProvider } from './contexts/FeedContext';
const config = {
useSystemColorMode: true,
initialColorMode: 'dark',
};
const customTheme = extendTheme({config});
const App = () => {
return (
<GestureHandlerRootView style={{flex: 1}}>
<NativeBaseProvider theme={customTheme} config={config}>
<FeedProvider>
<Navigation />
</FeedProvider>
</NativeBaseProvider>
</GestureHandlerRootView>
);
};
export default withWalletConnect(App, WalletConnectOptions);