質問編集履歴
1
無駄なコードの削除
title
CHANGED
File without changes
|
body
CHANGED
@@ -41,11 +41,6 @@
|
|
41
41
|
}
|
42
42
|
}
|
43
43
|
|
44
|
-
giveError(error){
|
45
|
-
let is_native = typeof document === 'undefined'
|
46
|
-
if(!is_native) console.log("error: " + error);
|
47
|
-
}
|
48
|
-
|
49
44
|
extract(position){
|
50
45
|
let coords = position.coords
|
51
46
|
let lat = coords.latitude
|
@@ -86,43 +81,6 @@
|
|
86
81
|
if (getAction) getAction(this.state.latitude, this.state.longtitude, this.state.errMessage)
|
87
82
|
}
|
88
83
|
|
89
|
-
returnWrapperStyle(color) {
|
90
|
-
const styles = StyleSheet.create({
|
91
|
-
wrapper: {
|
92
|
-
textAlign: "center",
|
93
|
-
justifyContent: "center",
|
94
|
-
borderRadius: 5,
|
95
|
-
backgroundColor: color,
|
96
|
-
height: 36,
|
97
|
-
shadowColor: "black",
|
98
|
-
shadowOpacity: 0.3,
|
99
|
-
shadowRadius: 1,
|
100
|
-
shadowOffset: {
|
101
|
-
height: 1.5,
|
102
|
-
width: 0,
|
103
|
-
},
|
104
|
-
elevation: 2
|
105
|
-
}
|
106
|
-
})
|
107
|
-
return styles.wrapper
|
108
|
-
}
|
109
|
-
|
110
|
-
returnTextStyle(color) {
|
111
|
-
const styles = StyleSheet.create({
|
112
|
-
text: {
|
113
|
-
fontSize: 15,
|
114
|
-
fontWeight: "600",
|
115
|
-
letterSpacing: 1,
|
116
|
-
paddingTop: 3,
|
117
|
-
paddingBottom: 3,
|
118
|
-
paddingLeft: 25,
|
119
|
-
paddingRight: 25,
|
120
|
-
color: color
|
121
|
-
}
|
122
|
-
})
|
123
|
-
return styles.text
|
124
|
-
}
|
125
|
-
|
126
84
|
render() {
|
127
85
|
const {
|
128
86
|
button: {
|