Commit 7ea214a8 authored by will brown's avatar will brown

fix back icon too far left on android

parent f8ef5abd
......@@ -21,6 +21,7 @@ const AppNavigator = () => {
mode={'modal'}
screenOptions={({ navigation }) => ({
headerLeft: () => <HeaderLeftButton onPress={() => navigation.goBack()} type={'close'} />,
headerLeftContainerStyle: { paddingHorizontal: theme.spacing.screenPadding },
headerStyle: { backgroundColor: theme.colors.green },
headerTintColor: theme.colors.white,
headerTitleStyle: textStyles.screenHeader,
......
......@@ -11,6 +11,7 @@ import HeaderLeftButton from './HeaderLeftButton';
import PhotographyScreen from '../screens/create/PhotographyScreen';
import { textStyles } from '../components/GeoText';
// Navigator used for cache creation flow
const Stack = createStackNavigator();
const CreateCacheNavigator = () => (
<Stack.Navigator
......@@ -25,6 +26,7 @@ const CreateCacheNavigator = () => (
onPress={() => navigation.goBack()}
/>
),
headerLeftContainerStyle: { paddingHorizontal: theme.spacing.screenPadding },
})
}
>
......
......@@ -13,7 +13,6 @@ const HeaderLeftButton: React.FC<Props> = ({ type = 'back', onPress }) => (
type={'font-awesome-5'}
color={theme.colors.white}
onPress={onPress}
style={{ paddingHorizontal: theme.spacing.screenPadding }}
/>
);
......
......@@ -12,11 +12,13 @@ import GroupScreen from '../screens/GroupScreen';
import ProfileScreen from '../screens/ProfileScreen';
import { textStyles } from '../components/GeoText';
// Navigator used for general page navigation (all screens except cache creation)
const Stack = createStackNavigator();
const HomeNavigator = () => (
<Stack.Navigator
screenOptions={({ navigation }) => ({
headerLeft: () => <HeaderLeftButton onPress={() => navigation.goBack()} />,
headerLeftContainerStyle: { paddingHorizontal: theme.spacing.screenPadding },
headerStyle: { backgroundColor: theme.colors.green },
headerTintColor: theme.colors.white,
headerTitleStyle: textStyles.screenHeader,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment