diff --git a/components/CustomHeader.js b/components/CustomHeader.js index 091f6f3..1c12564 100644 --- a/components/CustomHeader.js +++ b/components/CustomHeader.js @@ -8,6 +8,7 @@ import Touchable from 'react-native-platform-touchable'; import ThemeManager from "../utils/ThemeManager"; import CustomMaterialIcon from "./CustomMaterialIcon"; import i18n from "i18n-js"; +import { NavigationActions } from 'react-navigation'; type Props = { hasBackButton: boolean, @@ -75,10 +76,13 @@ export default class CustomHeader extends React.Component { button = this.props.navigation.goBack()}> + onPress={() => { + const backAction = NavigationActions.back(); + this.props.navigation.dispatch(backAction); + }}> + icon={Platform.OS === 'chevron-left' ? "" : "arrow-left"}/> ; else button = this.props.leftButton;