-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathFollowers.js
97 lines (89 loc) · 5.5 KB
/
Followers.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
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';
class MessageScreen extends React.Component {
static navigationOptions = {
header:null
}
constructor(props){
super();
}
render() {
const {navigate} = this.props.navigation;
// console.warn(this.constructor.name);
return (
<View>
<Header
leftComponent={<TouchableOpacity onPress={() => navigate('Profile')}><Image source={require('./assets/left-arrow.png')} style={{ width:20, height: 20, tintColor:'white'}}/></TouchableOpacity>}
centerComponent={{ text: 'フォロワー', style: { color: '#fff', fontSize:17,fontWeight:'bold' } }}
rightComponent={{ icon: 'add', color: '#fff', }}
containerStyle={{
backgroundColor: 'pink',
justifyContent: 'space-around',
}}
/>
<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}}
onPress={() => this.props.navigation.navigate('Profile')} >
<View style={{backgroundColor:'white',height:'100%',aspectRatio: 1,padding:2}}>
<Image source={require('./assets/instagram-clone-sample.png')} style={{ width:65, height: 65, borderRadius: 65 / 2}}/>
</View>
<View style={{backgroundColor:'white',height:'100%',width:'58%',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:'20%',paddingTop:20,paddingBottom:20}}>
<TouchableOpacity style={{backgroundColor:'white',height:'100%', width:'100%',borderRadius:4, borderWidth: 0.5,borderColor:'pink',padding:8}} >
<Text style={{textAlign:'center', fontSize: 10, color:'pink', fontWeight:'bold'}}>Follow</Text>
</TouchableOpacity>
</View>
</TouchableOpacity>
<TouchableOpacity
style={{backgroundColor:'white',width:'100%',height:80,marginBottom:5,flexDirection: 'row',padding:5}}
onPress={() => this.props.navigation.navigate('Profile')} >
<View style={{backgroundColor:'white',height:'100%',aspectRatio: 1,padding:2}}>
<Image source={require('./assets/instagram-clone-sample.png')} style={{ width:65, height: 65, borderRadius: 65 / 2}}/>
</View>
<View style={{backgroundColor:'white',height:'100%',width:'58%',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:'20%',paddingTop:20,paddingBottom:20}}>
<TouchableOpacity style={{backgroundColor:'pink',height:'100%', width:'100%',borderRadius:4, borderWidth: 0.5,borderColor:'pink',padding:8}} >
<Text style={{textAlign:'center', fontSize: 10, color:'white', fontWeight:'bold'}}>Following</Text>
</TouchableOpacity>
</View>
</TouchableOpacity>
<TouchableOpacity
style={{backgroundColor:'white',width:'100%',height:80,marginBottom:5,flexDirection: 'row',padding:5}}
onPress={() => this.props.navigation.navigate('Profile')} >
<View style={{backgroundColor:'white',height:'100%',aspectRatio: 1,padding:2}}>
<Image source={require('./assets/instagram-clone-sample.png')} style={{ width:65, height: 65, borderRadius: 65 / 2}}/>
</View>
<View style={{backgroundColor:'white',height:'100%',width:'58%',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:'20%',paddingTop:20,paddingBottom:20}}>
<TouchableOpacity style={{backgroundColor:'white',height:'100%', width:'100%',borderRadius:4, borderWidth: 0.5,borderColor:'pink',padding:8}} >
<Text style={{textAlign:'center', fontSize: 10, color:'pink', fontWeight:'bold'}}>Follow</Text>
</TouchableOpacity>
</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',
},
}
);
export default MessageScreen;