Skip to content

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

fix issue with characters hiding on ios

ammarahm-ed83e2259fd2b0
diff --git a/apps/mobile/src/components/Typography/Heading.js b/apps/mobile/src/components/Typography/Heading.js
index 0c9d01a8a..4748271d9 100644
--- a/apps/mobile/src/components/Typography/Heading.js
+++ b/apps/mobile/src/components/Typography/Heading.js
@@ -26,6 +26,7 @@ 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
},
style,
]}></Text>
diff --git a/apps/mobile/src/components/Typography/Paragraph.js b/apps/mobile/src/components/Typography/Paragraph.js
index 76bfdd375..d91d33d78 100644
--- a/apps/mobile/src/components/Typography/Paragraph.js
+++ b/apps/mobile/src/components/Typography/Paragraph.js
@@ -1,5 +1,5 @@
import React from 'react';
-import {Text} from 'react-native';
+import {Platform, Text} from 'react-native';
import {useTracked} from '../../provider';
import {SIZE, WEIGHT} from '../../utils/SizeUtils';
@@ -20,13 +20,15 @@ const Paragraph = ({color, size, style, ...restProps}) => {
return (
<Text
+ onLayout={e => console.log(e.nativeEvent.layout.height,"HEIGHT")}
{...restProps}
style={[
{
fontFamily: WEIGHT.regular,
fontSize: size || SIZE.sm,
color: color || colors.pri,
- fontWeight:'400'
+ fontWeight:'400',
+ paddingBottom:Platform.OS === "ios" && size? size/3.5:3.5
},
style,
]}></Text>