-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
38 lines (33 loc) · 1.05 KB
/
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
36
37
38
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
*/
import React from 'react';
import {SafeAreaProvider} from 'react-native-safe-area-context';
import ReduxProvider from './app/store';
import {useColorScheme} from 'react-native';
import {ThemeProvider} from './app/theme/useTheme';
import {NoInternetToast} from './app/components/NoInternet';
import {AutocompleteDropdownContextProvider} from 'react-native-autocomplete-dropdown';
import Toast from 'react-native-toast-message';
// import { ToastConfig } from './app/components/Toast/toastConfig';
// Navigation
import RootNavigation from './app/routes/RootNavigation';
let Root = function App() {
return (
<AutocompleteDropdownContextProvider>
<SafeAreaProvider>
<ReduxProvider>
<ThemeProvider>
<RootNavigation />
<NoInternetToast />
<Toast position="top" />
</ThemeProvider>
</ReduxProvider>
</SafeAreaProvider>
</AutocompleteDropdownContextProvider>
);
};
export default Root;