-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
47 lines (40 loc) · 1.35 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
39
40
41
42
43
44
45
46
47
import {ThemeProvider} from '@shopify/restyle';
import React from 'react';
import {SafeAreaView, View} from 'react-native';
import {Box} from './src/components/Box/Box';
import { TextInput } from './src/components/TextInput/TextInput';
import {Button} from './src/components/Button/Button';
import {Text} from './src/components/Text/Text';
import {theme} from './src/theme/theme';
function App(): JSX.Element {
return (
<ThemeProvider theme={theme}>
<SafeAreaView>
<View style={{paddingHorizontal: 24}}>
<Text marginBottom="s8" preset="headingLarge">
Olá
</Text>
<Text preset="paragraphLarge" mb="s40">
Digite seu e-mail e senha para entrar
</Text>
<Box mb="s20">
<TextInput
errorMessage="mensagem de error"
label="E-mail"
placeholder="Digite seu e-mail"
/>
</Box>
<Box>
<TextInput label="Senha" placeholder="Digite sua senha" />
</Box>
<Text color="primary" preset="paragraphSmall" bold mt="s10">
Esqueci minha senha
</Text>
<Button marginTop="s48" title="Entrar" />
<Button preset="outline" marginTop="s12" title="Criar uma conta" />
</View>
</SafeAreaView>
</ThemeProvider>
);
}
export default App;