|
@@ -101,25 +101,54 @@ export default class ProximoMainScreen extends FetchedDataSectionList {
|
101
|
101
|
}
|
102
|
102
|
|
103
|
103
|
getRightButton() {
|
|
104
|
+ let searchScreenData = {
|
|
105
|
+ shouldFocusSearchBar: true,
|
|
106
|
+ data: {
|
|
107
|
+ type: {
|
|
108
|
+ id: "0",
|
|
109
|
+ name: i18n.t('proximoScreen.all'),
|
|
110
|
+ icon: 'star'
|
|
111
|
+ },
|
|
112
|
+ data: this.getAvailableArticles(this.state.fetchedData.articles, undefined)
|
|
113
|
+ },
|
|
114
|
+ };
|
|
115
|
+
|
|
116
|
+
|
104
|
117
|
return (
|
105
|
|
- <Touchable
|
106
|
|
- style={{padding: 6}}
|
107
|
|
- onPress={() => this.props.navigation.navigate('ProximoAboutScreen')}>
|
108
|
|
- <CustomMaterialIcon
|
109
|
|
- color={Platform.OS === 'ios' ? ThemeManager.getCurrentThemeVariables().brandPrimary : "#fff"}
|
110
|
|
- icon="information"/>
|
111
|
|
- </Touchable>
|
|
118
|
+ <View
|
|
119
|
+ style={{
|
|
120
|
+ flexDirection: 'row'
|
|
121
|
+ }}>
|
|
122
|
+ <Touchable
|
|
123
|
+ style={{padding: 6}}
|
|
124
|
+ onPress={() => this.props.navigation.navigate('ProximoListScreen', searchScreenData)}>
|
|
125
|
+ <CustomMaterialIcon
|
|
126
|
+ color={Platform.OS === 'ios' ? ThemeManager.getCurrentThemeVariables().brandPrimary : "#fff"}
|
|
127
|
+ icon="magnify"/>
|
|
128
|
+ </Touchable>
|
|
129
|
+ <Touchable
|
|
130
|
+ style={{padding: 6}}
|
|
131
|
+ onPress={() => this.props.navigation.navigate('ProximoAboutScreen')}>
|
|
132
|
+ <CustomMaterialIcon
|
|
133
|
+ color={Platform.OS === 'ios' ? ThemeManager.getCurrentThemeVariables().brandPrimary : "#fff"}
|
|
134
|
+ icon="information"/>
|
|
135
|
+ </Touchable>
|
|
136
|
+ </View>
|
112
|
137
|
);
|
113
|
138
|
}
|
114
|
139
|
|
115
|
140
|
getRenderItem(item: Object, section: Object, data: Object) {
|
|
141
|
+ let dataToSend = {
|
|
142
|
+ shouldFocusSearchBar: false,
|
|
143
|
+ data: item,
|
|
144
|
+ };
|
116
|
145
|
if (item.data.length > 0) {
|
117
|
146
|
return (
|
118
|
147
|
<ListItem
|
119
|
148
|
button
|
120
|
149
|
thumbnail
|
121
|
150
|
onPress={() => {
|
122
|
|
- this.props.navigation.navigate('ProximoListScreen', item);
|
|
151
|
+ this.props.navigation.navigate('ProximoListScreen', dataToSend);
|
123
|
152
|
}}
|
124
|
153
|
>
|
125
|
154
|
<Left>
|