-
Notifications
You must be signed in to change notification settings - Fork 1
/
App.js
230 lines (188 loc) · 4.87 KB
/
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
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
import React, { Component } from 'react';
import { StyleSheet, TextInput, TouchableOpacity, Text, View, Modal, Image, ScrollView } from 'react-native';
import Tags from 'react-native-tags';
import {Picker} from '@react-native-picker/picker';
class App extends Component {
constructor(props) {
super(props);
this.state = {
initialTags: ['HTML', 'JAVA', 'CSS'],
initialText: '',
string: 0,
itens: [
{key:1, nome:'Desenvolvedor Front-end'},
{key:2, nome:'Desenvolvedor Back-end'},
]
};
}
renderTag = ({ tag, index, onPress, deleteTagOnPress, readonly }) => {
return (
<TouchableOpacity
key={`${tag}-${index}`}
onPress={onPress}
style={styles.tag}>
<Text style={styles.textTag}>{tag}</Text>
</TouchableOpacity>
);
};
render() {
let itensItem = this.state.itens.map( (v, k) => {
return <Picker.Item key={k} value={k} label={v.nome}/>
})
return (
<View style={styles.screen}>
<ScrollView>
<View>
<Text style={styles.inputEntrada}>Criação de Portfólio</Text>
</View>
<View style={styles.perfilView}>
<Image
style={styles.tinyLogo}
source={{
uri: 'https://reactnative.dev/img/tiny_logo.png',
}}
/>
<Text style={styles.perfilText}> Foto de perfil</Text>
</View>
<View >
<Text style={styles.textQuemVoceEh}>Quem é você?</Text>
<TextInput style={styles.inputQuemVoceEh} placeholder="Escreva um pouco sobre você" underlineColorAndroid="transparent" />
</View>
<View>
<Text style={styles.textQuemVoceEh}>Qual sua formação?</Text>
<TextInput style={styles.inputQuemVoceEh} placeholder="Escreva sua formação" underlineColorAndroid="transparent" />
</View>
<View>
<Text style={styles.textQuemVoceEh}>Qual sua profissão?</Text>
<Picker
style={styles.pickercolor}
selectedValue={this.state.string}
onValueChange={( itemValue, itemIndex) => this.setState({string: itemValue})}>
{itensItem}
</Picker>
</View>
<View>
<Tags
containerStyle={styles.container}
initialText={this.state.initialText}
textInputProps={{
placeholderTextColor: '#D6D6D6',
placeholder: 'Digite as qualificações',
}}
inputStyle={styles.input}
initialTags={this.state.initialTags}
onChangeTags={this.onChangeTags}
onTagPress={this.onTagPress}
renderTag={this.renderTag}
deleteTagOnPress={true}
/>
</View>
<View>
</View>
<View style={styles.perfilView}>
<Text style={styles.perfilText}> Certificados</Text>
<Image
style={styles.certificados}
source={require('./img/certificadodigital.png')}
/>
<View style={styles.viewbotaoAdd}>
<TouchableOpacity style={styles.buttonOpacity}>
<Text style={styles.botaoadd}>+</Text>
</TouchableOpacity>
</View>
</View>
</ScrollView>
</View>
);
}
onTagPress = (index, tagLabel, event, deleted) => {
console.log(index, tagLabel, event, deleted ? 'deleted' : 'not deleted');
};
onChangeTags = tags => {
this.setState({ initialTags: tags });
};
}
const styles = StyleSheet.create({
screen: {
flex: 1,
backgroundColor: '#B533FF',
},
container: {
margin: 10,
borderRadius: 10,
backgroundColor: '#FFFFFF',
justifyContent: 'flex-start',
},
tag: {
backgroundColor: '#9333FF',
borderRadius: 10,
padding: 10,
margin: 10,
},
textTag: {
color: '#FFFFFF',
fontWeight: 'bold',
},
input: {
backgroundColor: '#FFFFFF',
color: '#606060',
fontWeight: 'bold',
},
inputEntrada:{
textAlign:'center',
fontSize:30,
fontWeight: 'bold',
color: '#FFFFFF',
},
perfilText:{
fontSize:20,
fontWeight: 'bold',
color: '#FFFFFF',
},
perfilView:{
alignItems:'center'
},
tinyLogo: {
width: 150,
height: 150,
},
pickercolor:{
color:'#FFF',
fontSize: 80,
fontWeight:'bold',
},
textQuemVoceEh:{
fontSize:20,
fontWeight: 'bold',
color: '#FFFFFF',
},
inputQuemVoceEh:{
height:36,
margin:10,
fontSize: 15,
padding: 10,
borderRadius:5,
backgroundColor:'#FFF',
},
certificados:{
height:220,
width:400,
marginBottom:10,
},
viewbotaoAdd:{
marginBottom:30,
},
botaoadd:{
fontSize:30,
textAlign:'center',
fontWeight: 'bold',
color: '#FFFFFF',
},
buttonOpacity:{
alignItems: "center",
backgroundColor: "#9333FF",
height:40,
width:40
}
});
export default App;