Skip to content

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

fix typography on ios and android

ammarahm-eda497c4cdf9d3
diff --git a/apps/mobile/src/components/Typography/Heading.js b/apps/mobile/src/components/Typography/Heading.js
index 4748271d9..ccc1572ee 100644
--- a/apps/mobile/src/components/Typography/Heading.js
+++ b/apps/mobile/src/components/Typography/Heading.js
@@ -26,7 +26,8 @@ const Heading = ({color, size, style, ...restProps}) => {
fontFamily: WEIGHT.bold,
fontSize: size || SIZE.xl,
color: color || colors.heading,
- paddingBottom:Platform.OS === "ios" && size? size/3.5:3.5
+ lineHeight:
+ Platform.OS === 'ios' ? (size ? size + 2 : SIZE.xl + 2) : null,
},
style,
]}></Text>
diff --git a/apps/mobile/src/components/Typography/Paragraph.js b/apps/mobile/src/components/Typography/Paragraph.js
index 4eecd8dfb..8d14fe9bb 100644
--- a/apps/mobile/src/components/Typography/Paragraph.js
+++ b/apps/mobile/src/components/Typography/Paragraph.js
@@ -20,19 +20,19 @@ const Paragraph = ({color, size, style, ...restProps}) => {
return (
<Text
-
{...restProps}
style={[
{
fontFamily: WEIGHT.regular,
fontSize: size || SIZE.sm,
color: color || colors.pri,
- fontWeight:'400',
- paddingBottom:Platform.OS === "ios" && size? size/3.5:3.5
+ fontWeight: '400',
+ lineHeight:
+ Platform.OS === 'ios' ? (size ? size + 2 : SIZE.sm + 2) : null,
},
style,
]}></Text>
);
};
-export default Paragraph
+export default Paragraph;