-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
33 lines (28 loc) · 772 Bytes
/
App.js
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
import { StatusBar } from "expo-status-bar";
import React from "react";
import { Text, View } from "react-native";
import { ThemeProvider } from "styled-components";
import { theme } from "./src/infrastracture/theme";
import styled from "styled-components";
const AppContainer = styled(View)`
flex: 1;
background-color: ${(props) => props.theme.colors.bg.primary}
align-items: center;
justify-content: center;
`;
const WelcomeText = styled(Text)`
font-size: ${(props) => props.theme.sizes[1]};
color: blue;
`;
export default function App() {
return (
<>
<ThemeProvider theme={theme}>
<AppContainer>
<WelcomeText>This is going to be a fun project!</WelcomeText>
<StatusBar style="auto" />
</AppContainer>
</ThemeProvider>
</>
);
}