forked from michaelwoon/R2S2-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BridgeInfo.js
68 lines (58 loc) · 1.51 KB
/
BridgeInfo.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
'use strict';
import React, { Component } from 'react';
import {
FlatList,
StyleSheet,
Text,
TextInput,
View,
Button,
ActivityIndicator,
Image,
} from 'react-native';
import { ListItem } from 'react-native-elements';
import base64 from "react-native-base64";
type Props = {};
export default class BridgeInfo extends Component<Props> {
constructor(props){
super(props);
// this.state = { isLoading: true};
};
static navigationOptions = {
title: 'Bridge Info',
};
fixCase(str){
str = str.toLowerCase();
return str.charAt(0).toUpperCase() + str.slice(1);
};
componentDidMount(){
};
render() {
// if(this.state.isLoading){
// return(
// <View style={{flex: 1, padding: 20}}>
// <ActivityIndicator/>
// </View>
// )
// }
const { params } = this.props.navigation.state;
return (
<View style={styles.container}>
<Text>Road name: {params.bridge.roadname}</Text>
<Text>Stream: {params.bridge.stream}</Text>
<Text>Xcord: {params.bridge.xcord}</Text>
<Text>Ycord: {params.bridge.ycord}</Text>
<Text>Flooded by: {params.bridge.floodedby}</Text>
<Text>Max WL: {params.bridge.maxwl}</Text>
<Text>Elevation: {params.bridge.roadelev}</Text>
<Text>ID: {params.bridge.fedid}</Text>
</View>
);
}
}
const styles = StyleSheet.create({
container: {
padding: 20,
flex: 1,
},
});