Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix section header is not centered in settings on ios

ammarahm-ed5106fe3ee6a2
diff --git a/apps/mobile/src/views/Settings/index.js b/apps/mobile/src/views/Settings/index.js
index 954ff81bd..66f7859b3 100644
--- a/apps/mobile/src/views/Settings/index.js
+++ b/apps/mobile/src/views/Settings/index.js
@@ -268,17 +268,17 @@ const SectionHeader = ({title}) => {
const {colors} = state;
return (
- <Heading
- size={SIZE.sm}
- color={colors.accent}
+ <View
style={{
- textAlignVertical: 'center',
- paddingHorizontal: 12,
height: 30,
backgroundColor: colors.nav,
+ paddingHorizontal: 12,
+ justifyContent: 'center',
}}>
- {title}
- </Heading>
+ <Heading size={SIZE.sm} color={colors.accent}>
+ {title}
+ </Heading>
+ </View>
);
};