Commit 5b3095a4 authored by Milan DiGiuseppe's avatar Milan DiGiuseppe

header UX

parent c28c67c4
......@@ -2,7 +2,7 @@ import React from 'react';
import { Header } from 'react-native-elements';
import theme from '../theme';
const { colors } = theme;
const { colors, spacing } = theme;
interface Props {
title: string;
......@@ -10,14 +10,17 @@ interface Props {
const SimpleHeader: React.FC<Props> = ({ title }) => (
<Header
leftContainerStyle={{ display: 'none' }}
centerComponent={{
text: title,
style: {
fontSize: 24,
fontSize: 32,
color: colors.white,
}
width: '100%',
},
}}
containerStyle={{
paddingHorizontal: spacing.screenPadding,
backgroundColor: colors.green,
}}
/>
......
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