質問編集履歴
1
無駄なコードの削除
test
CHANGED
File without changes
|
test
CHANGED
@@ -84,16 +84,6 @@
|
|
84
84
|
|
85
85
|
|
86
86
|
|
87
|
-
giveError(error){
|
88
|
-
|
89
|
-
let is_native = typeof document === 'undefined'
|
90
|
-
|
91
|
-
if(!is_native) console.log("error: " + error);
|
92
|
-
|
93
|
-
}
|
94
|
-
|
95
|
-
|
96
|
-
|
97
87
|
extract(position){
|
98
88
|
|
99
89
|
let coords = position.coords
|
@@ -174,94 +164,20 @@
|
|
174
164
|
|
175
165
|
|
176
166
|
|
177
|
-
returnWrapperStyle(color) {
|
178
|
-
|
179
|
-
const styles = StyleSheet.create({
|
180
|
-
|
181
|
-
|
167
|
+
render() {
|
182
|
-
|
183
|
-
|
168
|
+
|
184
|
-
|
185
|
-
justifyContent: "center",
|
186
|
-
|
187
|
-
borderRadius: 5,
|
188
|
-
|
189
|
-
backgroundColor: color,
|
190
|
-
|
191
|
-
height: 36,
|
192
|
-
|
193
|
-
shadowColor: "black",
|
194
|
-
|
195
|
-
shadowOpacity: 0.3,
|
196
|
-
|
197
|
-
shadowRadius: 1,
|
198
|
-
|
199
|
-
|
169
|
+
const {
|
200
|
-
|
201
|
-
|
170
|
+
|
202
|
-
|
203
|
-
width: 0,
|
204
|
-
|
205
|
-
},
|
206
|
-
|
207
|
-
|
171
|
+
button: {
|
172
|
+
|
173
|
+
buttonText,
|
174
|
+
|
175
|
+
buttonColor,
|
176
|
+
|
177
|
+
buttonTextColor
|
208
178
|
|
209
179
|
}
|
210
180
|
|
211
|
-
})
|
212
|
-
|
213
|
-
return styles.wrapper
|
214
|
-
|
215
|
-
}
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
returnTextStyle(color) {
|
220
|
-
|
221
|
-
const styles = StyleSheet.create({
|
222
|
-
|
223
|
-
text: {
|
224
|
-
|
225
|
-
fontSize: 15,
|
226
|
-
|
227
|
-
fontWeight: "600",
|
228
|
-
|
229
|
-
letterSpacing: 1,
|
230
|
-
|
231
|
-
paddingTop: 3,
|
232
|
-
|
233
|
-
paddingBottom: 3,
|
234
|
-
|
235
|
-
paddingLeft: 25,
|
236
|
-
|
237
|
-
paddingRight: 25,
|
238
|
-
|
239
|
-
color: color
|
240
|
-
|
241
|
-
}
|
242
|
-
|
243
|
-
})
|
244
|
-
|
245
|
-
return styles.text
|
246
|
-
|
247
|
-
}
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
render() {
|
252
|
-
|
253
|
-
const {
|
254
|
-
|
255
|
-
button: {
|
256
|
-
|
257
|
-
buttonText,
|
258
|
-
|
259
|
-
buttonColor,
|
260
|
-
|
261
|
-
buttonTextColor
|
262
|
-
|
263
|
-
}
|
264
|
-
|
265
181
|
} = this.props
|
266
182
|
|
267
183
|
|