-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathTagsScreen.js
190 lines (180 loc) · 7.9 KB
/
TagsScreen.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
import React ,{Component} from 'react';
import { StyleSheet, Text, View, Image,Dimensions, StatusBar, ScrollView,TouchableWithoutFeedback,TouchableOpacity,ImageBackground,Modal,TouchableHighlight } from 'react-native';
import { Header,Icon,SearchBar,Input,Button } from 'react-native-elements';
import Carousel from 'react-native-snap-carousel';
class SearchScreen extends React.Component {
constructor(props) {
super(props);
this.state = {
isBorderBottom:false,
};
}
state = {
search: '',
};
render() {
const { search } = this.state;
return (
<View>
<Header
leftComponent={{ icon: 'camera', color: '#fff' }}
centerComponent={{ text: 'じょそすたぐらむ', style: { color: '#fff', fontSize:17,fontWeight:'bold' } }}
rightComponent={{ icon: 'send', color: '#fff' }}
containerStyle={{
backgroundColor: 'pink',
justifyContent: 'space-around',
}}
/>
<View style={{flexDirection:'row'}}>
<View style={{backgroundColor:'white',width:'10%',height:'100%',padding:14}}>
<Image
source={require('./assets/left-arrow.png')}
style={{ width: 20, height: 20,resizeMode:"contain",alignItems: 'center',justifyContent: 'center',}}/>
</View>
<View style={{width:'90%',height:'100%'}}>
<Input
placeholder='検索'
leftIcon={
<Icon
name='search'
size={18}
color='gray'/>
}
rightIcon={
<Icon
name='cancel'
size={18}
color='gray'/>
}
/>
</View>
</View>
{/* //4Top Nav Tabs */}
<View style={{backgroundColor:'white',width:'100%',height:45,flexDirection:'row'}}>
<TouchableOpacity
style={{backgroundColor:'white',width:'25%',height:'100%',padding:'3%',borderBottomWidth:3, borderBottomColor:'pink'}}>
<Text style={{color:'gray',fontSize:14,textAlign:'center'}}>TOP</Text>
</TouchableOpacity>
<TouchableOpacity style={{backgroundColor:'white',width:'25%',height:'100%',padding:'3%'}}>
<Text style={{color:'gray',fontSize:14,textAlign:'center'}}>PEOPLE</Text>
</TouchableOpacity>
<TouchableOpacity style={{backgroundColor:'white',width:'25%',height:'100%',padding:'3%'}}>
<Text style={{color:'gray',fontSize:14,textAlign:'center'}}>TAGS</Text>
</TouchableOpacity>
<TouchableOpacity style={{backgroundColor:'white',width:'25%',height:'100%',padding:'3%'}}>
<Text style={{color:'gray',fontSize:14,textAlign:'center'}}>PLACES</Text>
</TouchableOpacity>
</View>
{/* //show users */}
<View style={{backgroundColor:'white',width:'100%',height:20,marginLeft:'3%',marginTop:10}}>
<Text style={{color:'gray',fontSize:12,textAlign:'left'}}>Suggested</Text>
</View>
<ScrollView
style={{backgroundColor:'white',width:'100%',paddingLeft:'3%',paddingRight:'3%',marginTop:5}}
>
<TouchableOpacity style={{backgroundColor:'white',width:'100%',height:80,marginBottom:5,flexDirection: 'row',padding:5}}>
<View style={{backgroundColor:'white',height:'100%',aspectRatio: 1,padding:2}}>
<Image
source={require('./assets/instagram-clone-sample.png')}
//borderRadius style will help us make the Round Shape Image
style={{ width:65, height: 65, borderRadius: 65 / 2}}
/>
</View>
<View style={{backgroundColor:'white',height:'100%',width:'68%',paddingTop:20,paddingBottom:20,paddingLeft:10}}>
<Text style={{color:'black',fontWeight:'bold',fontSize:14}}>Otaku_Queen</Text>
<Text style={{color:'gray',fontSize:14}}>姫</Text>
</View>
<View style={{backgroundColor:'white',height:'100%',width:'10%',paddingTop:30,paddingBottom:30}}>
<Icon
name='cancel'
size={12}
color='gray'/>
</View>
</TouchableOpacity>
<TouchableOpacity style={{backgroundColor:'white',width:'100%',height:80,marginBottom:5,flexDirection: 'row',padding:5}}>
<View style={{backgroundColor:'white',height:'100%',aspectRatio: 1,padding:2}}>
<Image
source={require('./assets/instagram-clone-sample.png')}
//borderRadius style will help us make the Round Shape Image
style={{ width:65, height: 65, borderRadius: 65 / 2}}
/>
</View>
<View style={{backgroundColor:'white',height:'100%',width:'68%',paddingTop:20,paddingBottom:20,paddingLeft:10}}>
<Text style={{color:'black',fontWeight:'bold',fontSize:14}}>Otaku_Queen</Text>
<Text style={{color:'gray',fontSize:14}}>姫</Text>
</View>
<View style={{backgroundColor:'white',height:'100%',width:'10%',paddingTop:30,paddingBottom:30}}>
<Icon
name='cancel'
size={12}
color='gray'/>
</View>
</TouchableOpacity>
<TouchableOpacity style={{backgroundColor:'white',width:'100%',height:80,marginBottom:5,flexDirection: 'row',padding:5}}>
<View style={{backgroundColor:'white',height:'100%',aspectRatio: 1,padding:2}}>
<Image
source={require('./assets/instagram-clone-sample.png')}
//borderRadius style will help us make the Round Shape Image
style={{ width:65, height: 65, borderRadius: 65 / 2}}
/>
</View>
<View style={{backgroundColor:'white',height:'100%',width:'68%',paddingTop:20,paddingBottom:20,paddingLeft:10}}>
<Text style={{color:'black',fontWeight:'bold',fontSize:14}}>Otaku_Queen</Text>
<Text style={{color:'gray',fontSize:14}}>姫</Text>
</View>
<View style={{backgroundColor:'white',height:'100%',width:'10%',paddingTop:30,paddingBottom:30}}>
<Icon
name='cancel'
size={12}
color='gray'/>
</View>
</TouchableOpacity>
</ScrollView>
</View>
);
}
}
const styles = StyleSheet.create({
welcomeImages:{
height: Dimensions.get('window').height,
width: Dimensions.get('window').width,
resizeMode: 'cover',
zIndex: 0,
position: 'relative',
},
title:{
alignItems: 'center',
justifyContent: 'center',
color: 'pink',
zIndex: 2,
fontSize:40,
position: 'absolute',
textAlign: 'center',
textAlignVertical: "center",
top:'35%',
left:'30%',
// fontFamily:'insta-font'
},
text:{
position: 'absolute',
height: Dimensions.get('window').height,
width: Dimensions.get('window').width,
backgroundColor:'rgba(0,0,0,0.6)',
},
slide:{
backgroundColor:'rgba(0,0,0,0.6)',
},
image:{
resizeMode: 'contain',
},
carousel:{
// borderRadius:10,
},
storyEnd:{
width:100,
height:100,
backgroundColor:"gray"
}
}
);
export default SearchScreen;