-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
40 lines (33 loc) · 765 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
40
import 'react-native-gesture-handler'
import { StatusBar } from 'expo-status-bar';
import { View } from 'react-native';
import AppLoading from 'expo-app-loading';
import {
useFonts,
Inter_400Regular,
Inter_500Medium
} from '@expo-google-fonts/inter';
import { theme } from './src/theme';
import Widget from './src/components/Widget';
export default function App() {
const [fontsLoaded] = useFonts({
Inter_400Regular,
Inter_500Medium,
});
if (!fontsLoaded) {
return <AppLoading />;
}
return (
<View style={{
flex: 1,
backgroundColor: theme.colors.background
}}>
<StatusBar
style="light"
backgroundColor='transparent'
translucent
/>
<Widget />
</View>
);
}