-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathImageDetail.js
68 lines (66 loc) · 3.71 KB
/
ImageDetail.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
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';
import { createStackNavigator, createAppContainer, createBottomTabNavigator,createMaterialTopTabNavigator } from "react-navigation";
class ImageDetail extends React.Component{
static navigationOptions = ({ navigate }) => ({
header: null
})
constructor(props){
super();
}
render() {
const {navigate} = this.props.navigation;
return (
<View>
<Header
leftComponent={ <TouchableOpacity onPress={() => navigate('Home')}><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: 'send', color: '#fff', onPress:() => navigate('Message')}}
containerStyle={{backgroundColor: 'pink',justifyContent: 'space-around'}}/>
<View style={{ height:600,backgroundColor:'white'}}>
<View style={{height:50}}>
<TouchableOpacity
style={{backgroundColor:'white',marginLeft:10,marginTop:4,marginRight:10,height:'80%',flexDirection: 'row'}}
onPress={() => navigate('Profile')}>
<Image
source={require('./assets/instagram-clone-sample.png')}
//borderRadius style will help us make the Round Shape Image
style={{ width: 30, height: 30, borderRadius: 30 / 2, marginLeft:5,marginTop:5}}/>
<Text style={{fontSize:14,marginLeft:12,marginTop:12,fontWeight:'bold'}}>みゅう</Text>
</TouchableOpacity>
</View>
<Image
source={require('./assets/insta-maid1.jpg')}
style={{ width: '100%', height: '70%', resizeMode: 'cover',}}/>
<View style={{ width: '100%', height: '10%', backgroundColor:'white',flexDirection: 'row',padding:10}}>
<TouchableOpacity>
<Image
source={require('./assets/heart-shape.png')}
style={{ width: 30, height: 30,marginRight:16,marginLeft:8}}/>
</TouchableOpacity>
<TouchableOpacity>
<Image
source={require('./assets/speech-bubble.png')}
style={{ width: 30, height: 30,marginRight:16}}/>
</TouchableOpacity>
<TouchableOpacity>
<Image
source={require('./assets/mail.png')}
style={{ width: 30, height: 30,marginRight:16}}/>
</TouchableOpacity>
</View>
<View>
<Text style={{color:'black',marginLeft:16,fontWeight:'bold'}}>100 いいね!</Text>
<View style={{flexDirection: 'row',marginTop:5}}>
<Text style={{color:'black',marginLeft:16,fontWeight:'bold'}}>完全で瀟洒なメイド</Text>
<Text style={{color:'black',marginLeft:12,fontSize:14}}>今日もお給仕しちゃいますにゃん❤️</Text>
</View>
</View>
</View>
</View>
);
}
}
export default ImageDetail;