-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
39 lines (33 loc) · 870 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
36
37
38
39
import { View, StatusBar } from 'react-native';
import { QueryClientProvider } from 'react-query';
import {
useFonts,
Inter_400Regular,
Inter_500Medium,
Inter_600SemiBold,
Inter_900Black,
} from '@expo-google-fonts/inter';
import { Loading } from '@app/components';
import { queryClient } from '@app/lib';
import { Home } from '@app/screens/Home';
import { styles } from '@app/styles';
export default function App() {
const [fontLoaded] = useFonts({
Inter_400Regular,
Inter_500Medium,
Inter_600SemiBold,
Inter_900Black,
});
return (
<View style={styles.container}>
<StatusBar translucent barStyle="light-content" backgroundColor="#000" />
{fontLoaded ? (
<QueryClientProvider client={queryClient}>
<Home />
</QueryClientProvider>
) : (
<Loading />
)}
</View>
);
}