-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
54 lines (51 loc) · 1.28 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
48
49
50
51
52
53
54
import { Dimensions, StyleSheet, Text, View, Image } from 'react-native';
import { Input } from './shared/input/input';
import { Colors, Fonts, Gaps } from './shared/tokens';
import EyeClosedIcon from './assets/icons/eye-closed';
import EyeOpenedIcon from './assets/icons/eye-opened';
import { Button } from './shared/Button/Button';
export default function App() {
const width = Dimensions.get('window').width;
return (
<View style={styles.container}>
<View style={styles.container}>
<Image
style={styles.logo}
source={require('./assets/logo.png')}
resizeMode='center'
/>
<View style={styles.form}>
<Input placeholder='Email'/>
<Input isPassword placeholder='Password'/>
<Button text='Log in' />
</View>
<Text style={styles.button}>Password recovery</Text>
</View>
</View>
);
}
const styles = StyleSheet.create({
container: {
justifyContent: 'center',
padding: 55,
flex: 1,
backgroundColor: Colors.black
},
content: {
alignItems: 'center',
gap: Gaps.g50
},
form: {
alignSelf: 'stretch',
gap: Gaps.g16
},
logo: {
width: 210,
height: 100
},
button: {
color: Colors.white,
fontSize: Fonts.f18,
padding: 25,
}
});