|
@@ -1,12 +1,14 @@
|
1
|
1
|
// @flow
|
2
|
2
|
|
3
|
3
|
import * as React from 'react';
|
4
|
|
-import {Container, Text, Content, ListItem, Left, Thumbnail, Right, Body, Icon} from 'native-base';
|
|
4
|
+import {Container, Text, Content, ListItem, Left, Thumbnail, Right, Body} from 'native-base';
|
5
|
5
|
import CustomHeader from "../../components/CustomHeader";
|
6
|
|
-import {FlatList} from "react-native";
|
|
6
|
+import {FlatList, Platform} from "react-native";
|
7
|
7
|
import Touchable from 'react-native-platform-touchable';
|
8
|
8
|
import Menu, {MenuItem} from 'react-native-material-menu';
|
9
|
9
|
import i18n from "i18n-js";
|
|
10
|
+import CustomMaterialIcon from "../../components/CustomMaterialIcon";
|
|
11
|
+import ThemeManager from "../../utils/ThemeManager";
|
10
|
12
|
|
11
|
13
|
const sortMode = {
|
12
|
14
|
price: "0",
|
|
@@ -138,15 +140,11 @@ export default class ProximoListScreen extends React.Component<Props, State> {
|
138
|
140
|
*/
|
139
|
141
|
setupSortIcons(mode: string, isReverse: boolean) {
|
140
|
142
|
const downSortIcon =
|
141
|
|
- <Icon
|
142
|
|
- active
|
143
|
|
- name={'sort-descending'}
|
144
|
|
- type={'MaterialCommunityIcons'}/>;
|
|
143
|
+ <CustomMaterialIcon
|
|
144
|
+ icon={'sort-descending'}/>;
|
145
|
145
|
const upSortIcon =
|
146
|
|
- <Icon
|
147
|
|
- active
|
148
|
|
- name={'sort-ascending'}
|
149
|
|
- type={'MaterialCommunityIcons'}/>;
|
|
146
|
+ <CustomMaterialIcon
|
|
147
|
+ icon={'sort-ascending'}/>;
|
150
|
148
|
switch (mode) {
|
151
|
149
|
case sortMode.price:
|
152
|
150
|
this.setState({sortNameIcon: ''});
|
|
@@ -183,10 +181,9 @@ export default class ProximoListScreen extends React.Component<Props, State> {
|
183
|
181
|
onPress={() =>
|
184
|
182
|
this._menu.show()
|
185
|
183
|
}>
|
186
|
|
- <Icon
|
187
|
|
- style={{color: "#fff"}}
|
188
|
|
- name="sort"
|
189
|
|
- type={'MaterialCommunityIcons'}/>
|
|
184
|
+ <CustomMaterialIcon
|
|
185
|
+ color={Platform.OS === 'ios' ? ThemeManager.getCurrentThemeVariables().brandPrimary : "#fff"}
|
|
186
|
+ icon={'sort'}/>
|
190
|
187
|
</Touchable>
|
191
|
188
|
}
|
192
|
189
|
>
|