forked from mayu-496/file
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDisplayBuilding.js
More file actions
116 lines (86 loc) · 2.57 KB
/
DisplayBuilding.js
File metadata and controls
116 lines (86 loc) · 2.57 KB
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
import React, { Component } from 'react';
import { Text,
StyleSheet,
View,
TextInput,
TouchableOpacity,
Image,
ScrollView,
Dimensions
} from 'react-native';
import { CardViewWithIcon,CardViewWithImage} from "react-native-simple-card-view";
import {Actions} from 'react-native-router-flux';
const options={
title: ' Select Image ',
takePhotoButtonTitle: 'Camera',
chooseFromLibraryButtonTitle: 'Gallery',
}
export default class DisplayBuilding extends Component<{}> {
render() {
return(
<View style = {styles.container}>
<Image resizeMode="cover"
source={ {uri: 'https://aff.bstatic.com/images/hotel/max1024x768/483/48373839.jpg'} }
style={{width:300,
height:200,
margin:10,
borderWidth:2,
borderColor:'black',
alignSelf:'center'}}/>
<Text style={styles.text}> Building Name </Text>
<Text style={styles.text}> No Of Flats </Text>
<Text style={styles.text}> Address </Text>
<Text style={styles.text}> City </Text>
<Text style={styles.text}> Pin Code </Text>
<Text style={styles.text}> State </Text>
<Text style={styles.text}> Country </Text>
<TouchableOpacity onPress={Actions.DisplayFlats} style={styles.button}>
<Text style={styles.buttonText}>Flats</Text>
</TouchableOpacity>
<View style={ {flexDirection: "row",flexWrap : 'wrap',} }>
<TouchableOpacity style={styles.button1}>
<Text style={styles.buttonText}>Edit</Text>
</TouchableOpacity>
<Text> </Text>
<TouchableOpacity style={styles.button1}>
<Text style={styles.buttonText}>Delete</Text>
</TouchableOpacity>
</View>
</View>
);
}
}
const styles = StyleSheet.create({
container : {
backgroundColor:'#E0F0EC',
flex: 1,
},
button: {
width:280,
backgroundColor:'#02edd5',
borderRadius: 25,
marginVertical: 10,
paddingVertical: 13,
alignSelf:'center'
},
button1: {
width : (Dimensions.get("window").width / 2) - 10,
backgroundColor:'#02edd5',
borderRadius: 20,
paddingVertical: 13,
alignSelf:'center'
},
buttonText: {
fontSize:16,
fontWeight:'500',
color:'#ffffff',
textAlign:'center'
},
text:{
color:'#093a39',
fontSize : 20,
marginLeft:15,
fontFamily: 'normal',
paddingBottom: 10,
}
});