-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
31 lines (26 loc) · 825 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
import { useFonts } from 'expo-font';
import { StatusBar } from 'expo-status-bar';
import { Main } from './src/Main';
import { CartProvider, WaiterProvider, AppThemeProvider } from './src/contexts';
import 'intl';
import 'intl/locale-data/jsonp/pt-BR';
export default function App() {
const [isFontsLoaded] = useFonts({
'GeneralSans-400': require('./src/assets/fonts/GeneralSans-Regular.otf'),
'GeneralSans-600': require('./src/assets/fonts/GeneralSans-Semibold.otf'),
'GeneralSans-700': require('./src/assets/fonts/GeneralSans-Bold.otf'),
});
if (!isFontsLoaded) {
return null;
}
return (
<AppThemeProvider>
<WaiterProvider>
<CartProvider>
<StatusBar style="auto" />
<Main />
</CartProvider>
</WaiterProvider>
</AppThemeProvider>
);
}