diff options
Diffstat (limited to 'src/routes/main/MainStackScreen.tsx')
-rw-r--r-- | src/routes/main/MainStackScreen.tsx | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/src/routes/main/MainStackScreen.tsx b/src/routes/main/MainStackScreen.tsx index 95d45d32..35c306e5 100644 --- a/src/routes/main/MainStackScreen.tsx +++ b/src/routes/main/MainStackScreen.tsx @@ -264,11 +264,21 @@ export const headerBarOptions: ( height={normalize(18)} width={normalize(18)} color={color} - style={styles.backButton} + style={[ + styles.backButton, + color === 'white' ? styles.backButtonShadow : {}, + ]} /> ), headerTitle: () => ( - <Text style={[styles.headerTitle, {color: color}]}>{title}</Text> + <Text + style={[ + styles.headerTitle, + {color: color}, + {fontSize: title.length > 18 ? normalize(14) : normalize(16)}, + ]}> + {title} + </Text> ), }); @@ -290,8 +300,13 @@ const styles = StyleSheet.create({ backButton: { marginLeft: 30, }, + backButtonShadow: { + shadowColor: 'black', + shadowRadius: 3, + shadowOpacity: 0.7, + shadowOffset: {width: 0, height: 0}, + }, headerTitle: { - fontSize: normalize(16), letterSpacing: normalize(1.3), fontWeight: '700', }, |