Switch to System font to fix emoji rendering

This commit is contained in:
Paul Frazee
2022-12-05 13:44:24 -06:00
parent 65e5f2ac86
commit 39bab0bb08
4 changed files with 3 additions and 13 deletions
+1 -1
View File
@@ -356,7 +356,7 @@ const styles = StyleSheet.create({
maxWidth: 240,
},
postText: {
fontFamily: 'Helvetica Neue',
fontFamily: 'System',
fontSize: 16,
lineHeight: 20.8, // 1.3 of 16px
},
+1 -1
View File
@@ -206,7 +206,7 @@ const styles = StyleSheet.create({
paddingBottom: 8,
},
postText: {
fontFamily: 'Helvetica Neue',
fontFamily: 'System',
fontSize: 16,
lineHeight: 20.8, // 1.3 of 16px
},
+1 -1
View File
@@ -249,7 +249,7 @@ const styles = StyleSheet.create({
minHeight: 36,
},
postText: {
fontFamily: 'Helvetica Neue',
fontFamily: 'System',
fontSize: 16,
lineHeight: 20.8, // 1.3 of 16px
},
-10
View File
@@ -98,13 +98,3 @@ function* toSegments(text: string, entities: Entity[]) {
yield text.slice(cursor, text.length)
}
}
function stripUsername(v: string): string {
return v.trim().replace('@', '')
}
function isSameLink(a: string, b: string) {
a = a.startsWith('http') ? a : `https://${a}`
b = b.startsWith('http') ? b : `https://${b}`
return a === b
}