-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTestsIso.txt
More file actions
70 lines (61 loc) · 2.19 KB
/
TestsIso.txt
File metadata and controls
70 lines (61 loc) · 2.19 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
import { View, StyleSheet, Dimensions } from 'react-native';
import { useNavigation } from '@react-navigation/native';
import Button from '../components/Button';
import TextComponent from '../components/Text';
import Links from '../components/Links';
import BackgroundWelcome from '../components/BackgroundWelcome';
import { Row } from 'native-base';
import { LoginScreen } from './LoginScreen';
const { height } = Dimensions.get('window');
export function PrimeScreen() {
const navigation = useNavigation();
return (
<BackgroundWelcome>
<View style={styles.screen}>
<View style={styles.topText}>
<TextComponent style={{ fontSize: 40 }}>
Desafie seus limites{"\n"}
Ganhe mais que{"\n"}
resultados
</TextComponent>
</View>
<View>
<TextComponent style={{ fontSize: 20, marginTop: height * 0.025 }}>
Faça check-ins, acumule pontos e conquiste prêmios de verdade.
</TextComponent>
</View>
<View style={styles.button}>
<Button title="Iniciar Jornada" onPress={() => navigation.navigate('LoginScreen')}
/>
</View>
<View style={styles.tochLogin}>
<TextComponent style={{ flexDirection: 'row' }}>
Já tem uma conta? <Links styles={{ marginBottom: 1 }} >Login</Links>
</TextComponent>
</View>
</View>
</BackgroundWelcome>
);
}
const styles = StyleSheet.create({
screen: {
flex: 1,
justifyContent: 'flex-start',
marginTop: height * 0.03, // 3% da altura da tela
alignItems: 'center',
paddingHorizontal: 20,
},
topText: {
alignItems: 'center',
marginTop: height * 0.08, // 8% da altura da tela
},
button: {
marginTop: height * 0.06, // 6% da altura da tela
alignItems: 'center',
},
tochLogin: {
padding: 20,
alignItems: 'center',
marginBottom: 20,
},
});