/* eslint-disable prettier/prettier */
import React from 'react';
import {createStackNavigator} from '@react-navigation/stack';
import Login from '@src/screens/LoginScreen';
import StoreList from '@src/screens/StoreListScreen';
import PricecheckList from '@src/screens/PricecheckListScreen';
import {Image, StyleSheet, TouchableOpacity, View} from 'react-native';
import {color} from '../themes/color';
import {useTranslation} from 'react-i18next';
const Stack = createStackNavigator();
const StoreListScreenOptions = ({title, showBackButton, navigation}) => {
return {
headerShown: true,
headerLeft: () =>
showBackButton ? (
navigation.goBack()}>
) : (
console.log('Logout button pressed')}>
),
headerRight: () => (
),
title: title,
};
};
const AppScreens = () => {
//const showBackButton = useNavigationParam('showBackButton');
const {t} = useTranslation();
return (
StoreListScreenOptions({
title: `${t('PRICECHECK')}`,
showBackButton: false,
navigation, //
})
}
/>
StoreListScreenOptions({
title: `${t('PRICECHECK')}`,
showBackButton: true,
navigation, //
})
}
/>
);
};
const AuthScreens = () => (
);
export {AppScreens, AuthScreens};
const styles = StyleSheet.create({
storeListLeftHeader: {
alignSelf: 'flex-start',
tintColor: color.lightTheme.palette.appthemecolor,
},
storeListRightHeader: {
alignSelf: 'flex-end',
tintColor: color.lightTheme.palette.appthemecolor,
},
backArrowHeader: {
tintColor: color.lightTheme.palette.appthemecolor,
},
});