-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.tsx
More file actions
45 lines (41 loc) · 1.3 KB
/
App.tsx
File metadata and controls
45 lines (41 loc) · 1.3 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
37
38
39
40
41
42
43
44
45
import '@walletconnect/react-native-compat';
import '@ethersproject/shims';
import React from 'react';
import AppNavigator from './src/navigation';
import {StatusBar, StyleSheet} from 'react-native';
import {QueryClient, QueryClientProvider} from '@tanstack/react-query';
import {Provider} from 'react-redux';
import store from './src/store';
import {persistStore} from 'redux-persist';
import {PersistGate} from 'redux-persist/integration/react';
import Toast from 'react-native-toast-message';
import {GestureHandlerRootView} from 'react-native-gesture-handler';
import {toastConfig} from './src/config';
const queryClient = new QueryClient();
const persistor = persistStore(store);
export default function App() {
return (
<>
<StatusBar
barStyle="light-content"
backgroundColor="transparent"
translucent={true}
/>
<Provider store={store}>
<PersistGate loading={null} persistor={persistor}>
<QueryClientProvider client={queryClient}>
<GestureHandlerRootView style={styles.container}>
<AppNavigator />
</GestureHandlerRootView>
</QueryClientProvider>
</PersistGate>
</Provider>
<Toast config={toastConfig} />
</>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
},
});