|
@@ -94,11 +94,28 @@ let states = {
|
94
|
94
|
<Image source={require('./testimg.gif')} />
|
95
|
95
|
|
96
|
96
|
</View>
|
|
97
|
+ </ScrollView></View>,
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+ newsView:
|
|
101
|
+ <View style = {styles.containerbackground}>
|
|
102
|
+ <ScrollView style={styles.scrollView}>
|
|
103
|
+ <View style = {styles.container}>
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+ <Text style={styles.intro}>Noticias</Text>
|
|
107
|
+
|
|
108
|
+ <Image source={require('./testimg.gif')} />
|
|
109
|
+
|
|
110
|
+ </View>
|
97
|
111
|
</ScrollView></View>
|
|
112
|
+
|
|
113
|
+
|
98
|
114
|
}
|
99
|
115
|
|
100
|
116
|
|
101
|
117
|
|
|
118
|
+
|
102
|
119
|
class App extends React.Component {
|
103
|
120
|
|
104
|
121
|
//current state
|
|
@@ -107,6 +124,7 @@ state = {current: states.welcome}
|
107
|
124
|
//state changing functions
|
108
|
125
|
setHome = () => this.setState({ current: states.welcome })
|
109
|
126
|
setData = () => this.setState({ current: states.dataView })
|
|
127
|
+setNews = () => this.setState({ current: states.newsView })
|
110
|
128
|
|
111
|
129
|
|
112
|
130
|
//render app
|
|
@@ -119,7 +137,7 @@ setData = () => this.setState({ current: states.dataView })
|
119
|
137
|
<Text style={styles.sub}> Navegador</Text>
|
120
|
138
|
<View style = {styles.buttons}>
|
121
|
139
|
<Button
|
122
|
|
- onPress = {this.setHome}
|
|
140
|
+ onPress = {this.setNews}
|
123
|
141
|
title = "Noticias"
|
124
|
142
|
color = "blue"
|
125
|
143
|
/>
|