From 2b7270bd060a65df6bbc9ac32b113356f6bfd868 Mon Sep 17 00:00:00 2001 From: keplyx Date: Mon, 5 Aug 2019 14:05:51 +0200 Subject: [PATCH] Fixed ios icons white on white header + removed unused imports --- components/CustomHeader.js | 18 +++++++++--------- package.json | 8 -------- screens/Proximo/ProximoListScreen.js | 25 +++++++++++-------------- 3 files changed, 20 insertions(+), 31 deletions(-) diff --git a/components/CustomHeader.js b/components/CustomHeader.js index 3073e4a..4a354ae 100644 --- a/components/CustomHeader.js +++ b/components/CustomHeader.js @@ -2,9 +2,11 @@ import * as React from "react"; import {Body, Header, Icon, Left, Right, Title} from "native-base"; -import {StyleSheet} from "react-native"; +import {StyleSheet, Platform} from "react-native"; import {getStatusBarHeight} from "react-native-status-bar-height"; import Touchable from 'react-native-platform-touchable'; +import ThemeManager from "../utils/ThemeManager"; +import CustomMaterialIcon from "./CustomMaterialIcon"; type Props = { backButton: boolean, @@ -37,20 +39,18 @@ export default class CustomHeader extends React.Component { this.props.navigation.goBack()}> - + ; else button = this.props.navigation.toggleDrawer()}> - + ; return ( diff --git a/package.json b/package.json index 8383bf3..28d0c2e 100644 --- a/package.json +++ b/package.json @@ -15,22 +15,14 @@ "expo-localization": "^5.0.1", "expo-permissions": "^5.0.1", "i18n-js": "^3.3.0", - "i18next": "^17.0.4", "native-base": "^2.12.1", "native-base-shoutem-theme": "^0.2.3", "react": "^16.8.6", "react-dom": "^16.8.6", - "react-i18next": "latest", "react-native": "^0.59.9", "react-native-autolink": "^1.8.1", - "react-native-hyperlink": "0.0.14", - "react-native-image-zoom-viewer": "^2.2.26", - "react-native-lightbox": "^0.8.0", - "react-native-modal": "^11.3.0", "react-native-platform-touchable": "^1.1.1", - "react-native-scalable-image": "^0.5.1", "react-native-status-bar-height": "^2.3.1", - "react-native-web": "^0.11.4", "react-navigation": "^3.11.0" }, "devDependencies": { diff --git a/screens/Proximo/ProximoListScreen.js b/screens/Proximo/ProximoListScreen.js index 9f9f399..d1300c1 100644 --- a/screens/Proximo/ProximoListScreen.js +++ b/screens/Proximo/ProximoListScreen.js @@ -1,12 +1,14 @@ // @flow import * as React from 'react'; -import {Container, Text, Content, ListItem, Left, Thumbnail, Right, Body, Icon} from 'native-base'; +import {Container, Text, Content, ListItem, Left, Thumbnail, Right, Body} from 'native-base'; import CustomHeader from "../../components/CustomHeader"; -import {FlatList} from "react-native"; +import {FlatList, Platform} from "react-native"; import Touchable from 'react-native-platform-touchable'; import Menu, {MenuItem} from 'react-native-material-menu'; import i18n from "i18n-js"; +import CustomMaterialIcon from "../../components/CustomMaterialIcon"; +import ThemeManager from "../../utils/ThemeManager"; const sortMode = { price: "0", @@ -138,15 +140,11 @@ export default class ProximoListScreen extends React.Component { */ setupSortIcons(mode: string, isReverse: boolean) { const downSortIcon = - ; + ; const upSortIcon = - ; + ; switch (mode) { case sortMode.price: this.setState({sortNameIcon: ''}); @@ -183,10 +181,9 @@ export default class ProximoListScreen extends React.Component { onPress={() => this._menu.show() }> - + } >